diff --git a/cmd/skaffold/app/cmd/flags.go b/cmd/skaffold/app/cmd/flags.go index 8975ea87011..4f3a0bef12e 100644 --- a/cmd/skaffold/app/cmd/flags.go +++ b/cmd/skaffold/app/cmd/flags.go @@ -113,7 +113,7 @@ var flagRegistry = []Flag{ Value: &opts.Namespace, DefValue: "", FlagAddMethod: "StringVar", - DefinedOn: []string{"dev", "run", "debug", "deploy", "render", "build", "delete", "apply"}, + DefinedOn: []string{"dev", "run", "debug", "deploy", "render", "build", "delete", "apply", "verify", "exec"}, }, { Name: "default-repo", diff --git a/docs-v2/content/en/docs/references/cli/_index.md b/docs-v2/content/en/docs/references/cli/_index.md index 5b93cfe61a5..54f53feed5c 100644 --- a/docs-v2/content/en/docs/references/cli/_index.md +++ b/docs-v2/content/en/docs/references/cli/_index.md @@ -970,6 +970,7 @@ The build result from a previous 'skaffold build --file-output' run can be used --env-file='': File containing env var key-value pairs that will be set in all verify container envs -f, --filename='skaffold.yaml': Path or URL to the Skaffold config file -m, --module=[]: Filter Skaffold configs to only the provided named modules + -n, --namespace='': Runs deployments in the specified namespace. When used with 'render' command, renders manifests contain the namespace --port-forward=off: Port-forward exposes service ports and container ports within pods and other resources (off, user, services, debug, pods) -p, --profile=[]: Activate profiles by name (prefixed with `-` to disable a profile) --profile-auto-activation=true: Set to false to disable profile auto activation @@ -995,6 +996,7 @@ Env vars: * `SKAFFOLD_ENV_FILE` (same as `--env-file`) * `SKAFFOLD_FILENAME` (same as `--filename`) * `SKAFFOLD_MODULE` (same as `--module`) +* `SKAFFOLD_NAMESPACE` (same as `--namespace`) * `SKAFFOLD_PORT_FORWARD` (same as `--port-forward`) * `SKAFFOLD_PROFILE` (same as `--profile`) * `SKAFFOLD_PROFILE_AUTO_ACTIVATION` (same as `--profile-auto-activation`) @@ -1489,6 +1491,7 @@ The build result from a previous 'skaffold build --file-output' run can be used --env-file='': File containing env var key-value pairs that will be set in all verify container envs -f, --filename='skaffold.yaml': Path or URL to the Skaffold config file -m, --module=[]: Filter Skaffold configs to only the provided named modules + -n, --namespace='': Runs deployments in the specified namespace. When used with 'render' command, renders manifests contain the namespace --port-forward=off: Port-forward exposes service ports and container ports within pods and other resources (off, user, services, debug, pods) -p, --profile=[]: Activate profiles by name (prefixed with `-` to disable a profile) --profile-auto-activation=true: Set to false to disable profile auto activation @@ -1515,6 +1518,7 @@ Env vars: * `SKAFFOLD_ENV_FILE` (same as `--env-file`) * `SKAFFOLD_FILENAME` (same as `--filename`) * `SKAFFOLD_MODULE` (same as `--module`) +* `SKAFFOLD_NAMESPACE` (same as `--namespace`) * `SKAFFOLD_PORT_FORWARD` (same as `--port-forward`) * `SKAFFOLD_PROFILE` (same as `--profile`) * `SKAFFOLD_PROFILE_AUTO_ACTIVATION` (same as `--profile-auto-activation`)