zuke.tools.argo_rollouts
@zuke/argo-rollouts 1.1.0: @zuke/argo-rollouts — typed ArgoRolloutsTasks wrappers for the [Argo Rollouts](https://argo-rollouts.readthedocs.io) kubectl plugin (kubectl argo rollouts), for use in Zuke builds.
zuke on PyPI ↗ 16 symbols
Symbols
class ArgoRolloutsCreateAnalysisRunSettings(ArgoRolloutsSettings) Settings for create analysisrun — run an AnalysisTemplate (or, with global, a ClusterAnalysisTemplate) once, from the cluster or a file.
-
from_(template: str) -> SelfThe template in the cluster to run (
--from); this or fromFile is required. -
from_file(path: str) -> SelfA local template file to run (
--from-file); this or from is required. -
global_() -> SelfUse a ClusterAnalysisTemplate instead of an AnalysisTemplate (
--global). -
argument(name: str, value: str) -> SelfPass a template argument as
name=value(--argument); repeatable. -
name(value: str) -> SelfName the run exactly (
--name). -
generate_name(prefix: str) -> SelfLet the cluster name the run from this prefix (
--generate-name). -
instance_id(id: str) -> SelfThe controller instance the run belongs to (
--instance-id).
class ArgoRolloutsCreateSettings(ArgoRolloutsSettings) Settings for create — create a Rollout or Experiment from files.
-
filename(*paths: str) -> SelfA manifest to create from (
--filename); repeatable, at least one is required. -
watch() -> SelfKeep printing live updates after creating (
--watch). -
no_color() -> SelfPrint without colour (
--no-color).
class ArgoRolloutsGetExperimentSettings(ArgoRolloutsSettings) Settings for get experiment — show an experiment's templates and analysis.
-
name(value: str) -> SelfThe experiment to show (required).
-
watch() -> SelfKeep printing live updates (
--watch). -
no_color() -> SelfPrint without colour (
--no-color).
class ArgoRolloutsGetRolloutSettings(ArgoRolloutsSettings) Settings for get rollout — show a rollout's steps, replica sets and analysis.
-
name(value: str) -> SelfThe rollout to show (required).
-
watch() -> SelfKeep printing live updates (
--watch). -
no_color() -> SelfPrint without colour (
--no-color). -
timeout_seconds(seconds: float) -> SelfWith watch, give up after this many seconds (
--timeout-seconds).
class ArgoRolloutsLintSettings(ArgoRolloutsSettings) Settings for lint — validate a Rollout manifest without applying it.
-
filename(path: str) -> SelfThe manifest to lint (
--filename, required).
class ArgoRolloutsListExperimentsSettings(ArgoRolloutsSettings) Settings for list experiments. Unlike list rollouts it has no watch or name filter: the plugin registers only --all-namespaces for it, whatever its help text's examples suggest.
-
all_namespaces() -> SelfList across every namespace (
--all-namespaces).
class ArgoRolloutsListRolloutsSettings(ArgoRolloutsSettings) Settings for list rollouts.
-
all_namespaces() -> SelfList across every namespace (
--all-namespaces). -
name(value: str) -> SelfOnly show the rollout with this name (
--name). -
timestamps() -> SelfWith watch, print a timestamp on each update (
--timestamps). -
watch() -> SelfKeep printing changes (
--watch).
class ArgoRolloutsNamedSettings(ArgoRolloutsSettings) Settings for the subcommands whose only operand is a resource name: abort, pause, retry rollout, retry experiment, terminate analysisrun and terminate experiment. They differ only in their leading tokens, so they share one implementation rather than six copies of it.
-
name(value: str) -> SelfThe rollout, experiment or analysis run to act on (required).
class ArgoRolloutsPromoteSettings(ArgoRolloutsSettings) Settings for promote — advance a paused rollout to its next step, or with full skip every remaining step, pause and analysis.
-
name(value: str) -> SelfThe rollout to promote (required).
-
full() -> SelfPromote to the desired version outright, skipping analysis, pauses and steps (
--full).
class ArgoRolloutsRestartSettings(ArgoRolloutsSettings) Settings for restart — restart a rollout's pods, now or after a delay.
-
name(value: str) -> SelfThe rollout whose pods to restart (required).
-
in_(duration: str) -> SelfDelay the restart, e.g.
"30s","5m","1h"(--in).
class ArgoRolloutsSetImageSettings(ArgoRolloutsSettings) Settings for set image — point a container of the rollout at a new image, which starts a new rollout through the steps its manifest declares.
-
name(value: str) -> SelfThe rollout to update (required).
-
image(container: str, reference: str) -> SelfThe container and the image to set, as
CONTAINER=IMAGE(required). Pass"*"as the container to update every container in the rollout.
class ArgoRolloutsSettings(ToolSettings) Base for all Argo Rollouts subcommand settings. The binary is the plugin itself, kubectl-argo-rollouts, which takes the same subcommands as kubectl argo rollouts; the cluster-targeting flags (--namespace, --context, --kubeconfig) are shared by every subcommand.
-
namespace(name: str) -> SelfTarget a namespace (
--namespace). -
context(name: str) -> SelfUse a named kubeconfig context (
--context). -
kubeconfig(path: str) -> SelfUse an explicit kubeconfig file (
--kubeconfig).
class ArgoRolloutsStatusSettings(ArgoRolloutsSettings) Settings for status — report a rollout's status, by default watching until it completes or degrades.
-
name(value: str) -> SelfThe rollout to report on (required).
-
timeout(duration: str) -> SelfHow long to watch before giving up, e.g.
"10m";"0"waits forever (--timeout). -
no_watch() -> SelfPrint the current status once instead of watching it (
--watch=false).
class ArgoRolloutsTasks Typed task functions for the Argo Rollouts kubectl plugin.
-
static async set_image(ctx: ServiceContext, configure: Callable[[ArgoRolloutsSetImageSettings], ArgoRolloutsSetImageSettings] | None=None) -> ExecResultPoint a rollout's container at a new image, starting a rollout:
set image. -
static async promote(ctx: ServiceContext, configure: Callable[[ArgoRolloutsPromoteSettings], ArgoRolloutsPromoteSettings] | None=None) -> ExecResultAdvance a paused rollout, or promote it fully:
promote. -
static async abort(ctx: ServiceContext, configure: Callable[[ArgoRolloutsNamedSettings], ArgoRolloutsNamedSettings] | None=None) -> ExecResultAbort a rollout, returning traffic to the stable version:
abort. -
static async pause(ctx: ServiceContext, configure: Callable[[ArgoRolloutsNamedSettings], ArgoRolloutsNamedSettings] | None=None) -> ExecResultPause a rollout where it is:
pause. -
static async status(ctx: ServiceContext, configure: Callable[[ArgoRolloutsStatusSettings], ArgoRolloutsStatusSettings] | None=None) -> ExecResultReport, or watch, a rollout's status:
status. -
static async undo(ctx: ServiceContext, configure: Callable[[ArgoRolloutsUndoSettings], ArgoRolloutsUndoSettings] | None=None) -> ExecResultRoll a rollout back to an earlier revision:
undo. -
static async restart(ctx: ServiceContext, configure: Callable[[ArgoRolloutsRestartSettings], ArgoRolloutsRestartSettings] | None=None) -> ExecResultRestart a rollout's pods:
restart. -
static async retry_rollout(ctx: ServiceContext, configure: Callable[[ArgoRolloutsNamedSettings], ArgoRolloutsNamedSettings] | None=None) -> ExecResultRetry an aborted rollout:
retry rollout. -
static async retry_experiment(ctx: ServiceContext, configure: Callable[[ArgoRolloutsNamedSettings], ArgoRolloutsNamedSettings] | None=None) -> ExecResultRetry an experiment:
retry experiment. -
static async terminate_analysis_run(ctx: ServiceContext, configure: Callable[[ArgoRolloutsNamedSettings], ArgoRolloutsNamedSettings] | None=None) -> ExecResultTerminate a running analysis run:
terminate analysisrun. -
static async terminate_experiment(ctx: ServiceContext, configure: Callable[[ArgoRolloutsNamedSettings], ArgoRolloutsNamedSettings] | None=None) -> ExecResultTerminate a running experiment:
terminate experiment. -
static async get_rollout(ctx: ServiceContext, configure: Callable[[ArgoRolloutsGetRolloutSettings], ArgoRolloutsGetRolloutSettings] | None=None) -> ExecResultShow a rollout:
get rollout. -
static async get_experiment(ctx: ServiceContext, configure: Callable[[ArgoRolloutsGetExperimentSettings], ArgoRolloutsGetExperimentSettings] | None=None) -> ExecResultShow an experiment:
get experiment. -
static async list_rollouts(ctx: ServiceContext, configure: Callable[[ArgoRolloutsListRolloutsSettings], ArgoRolloutsListRolloutsSettings] | None=None) -> ExecResultList rollouts:
list rollouts. -
static async list_experiments(ctx: ServiceContext, configure: Callable[[ArgoRolloutsListExperimentsSettings], ArgoRolloutsListExperimentsSettings] | None=None) -> ExecResultList experiments:
list experiments. -
static async create(ctx: ServiceContext, configure: Callable[[ArgoRolloutsCreateSettings], ArgoRolloutsCreateSettings] | None=None) -> ExecResultCreate a Rollout or Experiment from files:
create. -
static async create_analysis_run(ctx: ServiceContext, configure: Callable[[ArgoRolloutsCreateAnalysisRunSettings], ArgoRolloutsCreateAnalysisRunSettings] | None=None) -> ExecResultRun an analysis template once:
create analysisrun. -
static async lint(ctx: ServiceContext, configure: Callable[[ArgoRolloutsLintSettings], ArgoRolloutsLintSettings] | None=None) -> ExecResultValidate a Rollout manifest:
lint. -
static async version(ctx: ServiceContext, configure: Callable[[ArgoRolloutsVersionSettings], ArgoRolloutsVersionSettings] | None=None) -> ExecResultPrint the plugin's version:
version.
class ArgoRolloutsUndoSettings(ArgoRolloutsSettings) Settings for undo — roll a rollout back to an earlier revision.
-
name(value: str) -> SelfThe rollout to roll back (required).
-
to_revision(revision: float) -> SelfThe revision to roll back to; the previous one when unset (
--to-revision).
class ArgoRolloutsVersionSettings(ArgoRolloutsSettings) Settings for version.
-
short() -> SelfPrint only the plugin's version number (
--short).