diff --git a/README.md b/README.md index 3bb48cea..082808fc 100644 --- a/README.md +++ b/README.md @@ -159,57 +159,57 @@ Available Commands: version Show version of the helm diff plugin Flags: - --allow-unreleased enables diffing of releases that are not yet deployed via Helm - -a, --api-versions stringArray Kubernetes api versions used for Capabilities.APIVersions - --color color output. Also accepts always, never and auto, the values of the global --color flag of Helm 4. You can control the value for this flag via HELM_DIFF_COLOR=[true|false]. If both --no-color and --color are unspecified, coloring enabled only when the stdout is a term and TERM is not "dumb" - -C, --context int output NUM lines of context around changes (default -1) - --detailed-exitcode return a non-zero exit code when there are changes - --devel use development versions, too. Equivalent to version '>0.0.0-0'. If --version is set, this is ignored. - --diff-tool string command used to compare the manifests instead of the built-in --output renderers (can also be set via the env var HELM_DIFF_TOOL). The old and the new manifest file paths are appended as the last two arguments - --disable-openapi-validation disables rendered templates validation against the Kubernetes OpenAPI Schema - --disable-validation disables rendered templates validation against the Kubernetes cluster you are currently pointing to. This is the same validation performed on an install - --dry-run string[="client"] --dry-run, --dry-run=client, or --dry-run=true disables cluster access and show diff as if it was install. Implies --install, --reset-values, and --disable-validation. --dry-run=server enables the cluster access with helm-get and the lookup template function. - --enable-dns enable DNS lookups when rendering templates - -D, --find-renames float32 Enable rename detection if set to any value greater than 0. If specified, the value denotes the maximum fraction of changed content as lines added + removed compared to total lines in a diff for considering it a rename. Only objects of the same Kind are attempted to be matched - -h, --help help for diff - --include-crds include CRDs in the diffing - --include-tests enable the diffing of the helm test hooks - --insecure-skip-tls-verify skip tls certificate checks for the chart download - --install enables diffing of releases that are not yet deployed via Helm (equivalent to --allow-unreleased, added to match "helm upgrade --install" command - --kube-context string name of the kubeconfig context to use - --kube-version string Kubernetes version used for Capabilities.KubeVersion - --kubeconfig string This flag is ignored, to allow passing of this top level flag to helm - -n, --namespace string namespace to assume the release to be installed into. Defaults to the current kube config namespace. - --no-color remove colors from the output. If both --no-color and --color are unspecified, coloring enabled only when the stdout is a term and TERM is not "dumb" - --no-hooks disable diffing of hooks - --normalize-manifests normalize manifests before running diff to exclude style differences from the output - --output string Possible values: diff, simple, template, json, structured, dyff. When set to "template", use the env var HELM_DIFF_TPL to specify the template. (default "diff") - --post-renderer string the path to an executable to be used for post rendering. If it exists in $PATH, the binary will be used, otherwise it will try to look for the executable at the given path - --post-renderer-args stringArray an argument to the post-renderer (can specify multiple) - --repo string specify the chart repository url to locate the requested chart - --reset-then-reuse-values reset the values to the ones built into the chart, apply the last release's values and merge in any new values. If '--reset-values' or '--reuse-values' is specified, this is ignored - --reset-values reset the values to the ones built into the chart and merge in any new values - --reuse-values reuse the last release's values and merge in any new values. If '--reset-values' is specified, this is ignored - --revision int revision of the release to use as the diff baseline instead of the newest one - --server-side string must be "true", "false" or "auto". Object updates run in the server instead of the client ("auto" defaults the value from the previous chart release's method) (default "auto") - --set stringArray set values on the command line (can specify multiple or separate values with commas: key1=val1,key2=val2) - --set-file stringArray set values from respective files specified via the command line (can specify multiple or separate values with commas: key1=path1,key2=path2) - --set-json stringArray set JSON values on the command line (can specify multiple or separate values with commas: key1=jsonval1,key2=jsonval2) - --set-literal stringArray set STRING literal values on the command line - --set-string stringArray set STRING values on the command line (can specify multiple or separate values with commas: key1=val1,key2=val2) - --show-secrets do not redact secret values in the output - --show-secrets-decoded decode secret values in the output - --skip-schema-validation skip validation of the rendered manifests against the Kubernetes OpenAPI schema - --storage-namespace string namespace where the helm release storage (Secret/ConfigMap) is located. Defaults to the target namespace (-n/--namespace) - --strip-trailing-cr strip trailing carriage return on input - --suppress stringArray allows suppression of the kinds listed in the diff output (can specify multiple, like '--suppress Deployment --suppress Service') - --suppress-output-line-regex stringArray a regex to suppress diff output lines that match - -q, --suppress-secrets suppress secrets in the output - --take-ownership if set, upgrade will ignore the check for helm annotations and take ownership of the existing resources - --three-way-merge use three-way-merge to compute patch and generate diff output - --three-way-merge-mode string how --three-way-merge applies the computed patch. Must be "auto", "server" or "client". "server" dry-runs the patch against the API server, which requires the patch permission. "client" merges locally and needs read access only, at the cost of not applying server-side defaulting and mutating webhooks. "auto" uses the server and falls back to the client when patching is not permitted (default "auto") - -f, --values valueFiles specify values in a YAML file (can specify multiple) (default []) - --version string specify the exact chart version to use. If this is not specified, the latest version is used + --allow-unreleased[=true|false] enables diffing of releases that are not yet deployed via Helm + -a, --api-versions stringArray Kubernetes api versions used for Capabilities.APIVersions + --color color output. Also accepts always, never and auto, the values of the global --color flag of Helm 4. You can control the value for this flag via HELM_DIFF_COLOR=[true|false]. If both --no-color and --color are unspecified, coloring enabled only when the stdout is a term and TERM is not "dumb" + -C, --context int output NUM lines of context around changes (default -1) + --detailed-exitcode[=true|false] return a non-zero exit code when there are changes + --devel[=true|false] use development versions, too. Equivalent to version '>0.0.0-0'. If --version is set, this is ignored. + --diff-tool string command used to compare the manifests instead of the built-in --output renderers (can also be set via the env var HELM_DIFF_TOOL). The old and the new manifest file paths are appended as the last two arguments + --disable-openapi-validation[=true|false] disables rendered templates validation against the Kubernetes OpenAPI Schema + --disable-validation[=true|false] disables rendered templates validation against the Kubernetes cluster you are currently pointing to. This is the same validation performed on an install + --dry-run string[="client"] --dry-run, --dry-run=client, or --dry-run=true disables cluster access and show diff as if it was install. Implies --install, --reset-values, and --disable-validation. --dry-run=server enables the cluster access with helm-get and the lookup template function. + --enable-dns[=true|false] enable DNS lookups when rendering templates + -D, --find-renames float32 Enable rename detection if set to any value greater than 0. If specified, the value denotes the maximum fraction of changed content as lines added + removed compared to total lines in a diff for considering it a rename. Only objects of the same Kind are attempted to be matched + -h, --help[=true|false] help for diff + --include-crds[=true|false] include CRDs in the diffing + --include-tests[=true|false] enable the diffing of the helm test hooks + --insecure-skip-tls-verify[=true|false] skip tls certificate checks for the chart download + --install[=true|false] enables diffing of releases that are not yet deployed via Helm (equivalent to --allow-unreleased, added to match "helm upgrade --install" command + --kube-context string name of the kubeconfig context to use + --kube-version string Kubernetes version used for Capabilities.KubeVersion + --kubeconfig string This flag is ignored, to allow passing of this top level flag to helm + -n, --namespace string namespace to assume the release to be installed into. Defaults to the current kube config namespace. + --no-color[=true|false] remove colors from the output. If both --no-color and --color are unspecified, coloring enabled only when the stdout is a term and TERM is not "dumb" + --no-hooks[=true|false] disable diffing of hooks + --normalize-manifests[=true|false] normalize manifests before running diff to exclude style differences from the output + --output string Possible values: diff, simple, template, json, structured, dyff. When set to "template", use the env var HELM_DIFF_TPL to specify the template. (default "diff") + --post-renderer string the path to an executable to be used for post rendering. If it exists in $PATH, the binary will be used, otherwise it will try to look for the executable at the given path + --post-renderer-args stringArray an argument to the post-renderer (can specify multiple) + --repo string specify the chart repository url to locate the requested chart + --reset-then-reuse-values[=true|false] reset the values to the ones built into the chart, apply the last release's values and merge in any new values. If '--reset-values' or '--reuse-values' is specified, this is ignored + --reset-values[=true|false] reset the values to the ones built into the chart and merge in any new values + --reuse-values[=true|false] reuse the last release's values and merge in any new values. If '--reset-values' is specified, this is ignored + --revision int revision of the release to use as the diff baseline instead of the newest one + --server-side string must be "true", "false" or "auto". Object updates run in the server instead of the client ("auto" defaults the value from the previous chart release's method) (default "auto") + --set stringArray set values on the command line (can specify multiple or separate values with commas: key1=val1,key2=val2) + --set-file stringArray set values from respective files specified via the command line (can specify multiple or separate values with commas: key1=path1,key2=path2) + --set-json stringArray set JSON values on the command line (can specify multiple or separate values with commas: key1=jsonval1,key2=jsonval2) + --set-literal stringArray set STRING literal values on the command line + --set-string stringArray set STRING values on the command line (can specify multiple or separate values with commas: key1=val1,key2=val2) + --show-secrets[=true|false] do not redact secret values in the output + --show-secrets-decoded[=true|false] decode secret values in the output + --skip-schema-validation[=true|false] skip validation of the rendered manifests against the Kubernetes OpenAPI schema + --storage-namespace string namespace where the helm release storage (Secret/ConfigMap) is located. Defaults to the target namespace (-n/--namespace) + --strip-trailing-cr[=true|false] strip trailing carriage return on input + --suppress stringArray allows suppression of the kinds listed in the diff output (can specify multiple, like '--suppress Deployment --suppress Service') + --suppress-output-line-regex stringArray a regex to suppress diff output lines that match + -q, --suppress-secrets[=true|false] suppress secrets in the output + --take-ownership[=true|false] if set, upgrade will ignore the check for helm annotations and take ownership of the existing resources + --three-way-merge[=true|false] use three-way-merge to compute patch and generate diff output + --three-way-merge-mode string how --three-way-merge applies the computed patch. Must be "auto", "server" or "client". "server" dry-runs the patch against the API server, which requires the patch permission. "client" merges locally and needs read access only, at the cost of not applying server-side defaulting and mutating webhooks. "auto" uses the server and falls back to the client when patching is not permitted (default "auto") + -f, --values valueFiles specify values in a YAML file (can specify multiple) (default []) + --version string specify the exact chart version to use. If this is not specified, the latest version is used Additional help topics: diff @@ -379,16 +379,16 @@ Examples: Flags: -a, --api-versions stringArray Kubernetes api versions used for Capabilities.APIVersions -C, --context int output NUM lines of context around changes (default -1) - --detailed-exitcode return a non-zero exit code when there are changes + --detailed-exitcode[=true|false] return a non-zero exit code when there are changes --diff-tool string command used to compare the manifests instead of the built-in --output renderers (can also be set via the env var HELM_DIFF_TOOL). The old and the new manifest file paths are appended as the last two arguments - --enable-dns enable DNS lookups when rendering templates + --enable-dns[=true|false] enable DNS lookups when rendering templates -D, --find-renames float32 Enable rename detection if set to any value greater than 0. If specified, the value denotes the maximum fraction of changed content as lines added + removed compared to total lines in a diff for considering it a rename. Only objects of the same Kind are attempted to be matched - -h, --help help for local - --include-crds include CRDs in the diffing - --include-tests enable the diffing of the helm test hooks + -h, --help[=true|false] help for local + --include-crds[=true|false] include CRDs in the diffing + --include-tests[=true|false] enable the diffing of the helm test hooks --kube-version string Kubernetes version used for Capabilities.KubeVersion --namespace string namespace to use for template rendering - --normalize-manifests normalize manifests before running diff to exclude style differences from the output + --normalize-manifests[=true|false] normalize manifests before running diff to exclude style differences from the output --output string Possible values: diff, simple, template, json, structured, dyff. When set to "template", use the env var HELM_DIFF_TPL to specify the template. (default "diff") --post-renderer string the path to an executable to be used for post rendering. If it exists in $PATH, the binary will be used, otherwise it will try to look for the executable at the given path --post-renderer-args stringArray an argument to the post-renderer (can specify multiple) @@ -398,12 +398,12 @@ Flags: --set-json stringArray set JSON values on the command line (can specify multiple or separate values with commas: key1=jsonval1,key2=jsonval2) --set-literal stringArray set STRING literal values on the command line --set-string stringArray set STRING values on the command line (can specify multiple or separate values with commas: key1=val1,key2=val2) - --show-secrets do not redact secret values in the output - --show-secrets-decoded decode secret values in the output - --strip-trailing-cr strip trailing carriage return on input + --show-secrets[=true|false] do not redact secret values in the output + --show-secrets-decoded[=true|false] decode secret values in the output + --strip-trailing-cr[=true|false] strip trailing carriage return on input --suppress stringArray allows suppression of the kinds listed in the diff output (can specify multiple, like '--suppress Deployment --suppress Service') --suppress-output-line-regex stringArray a regex to suppress diff output lines that match - -q, --suppress-secrets suppress secrets in the output + -q, --suppress-secrets[=true|false] suppress secrets in the output -f, --values valueFiles specify values in a YAML file (can specify multiple) (default []) Global Flags: @@ -474,55 +474,55 @@ HELM_DIFF_OUTPUT_CONTEXT=5 helm diff upgrade my-release datadog/datadog # default `helm template` based rendering instead. Flags: - --allow-unreleased enables diffing of releases that are not yet deployed via Helm - -a, --api-versions stringArray Kubernetes api versions used for Capabilities.APIVersions - -C, --context int output NUM lines of context around changes (default -1) - --detailed-exitcode return a non-zero exit code when there are changes - --devel use development versions, too. Equivalent to version '>0.0.0-0'. If --version is set, this is ignored. - --diff-tool string command used to compare the manifests instead of the built-in --output renderers (can also be set via the env var HELM_DIFF_TOOL). The old and the new manifest file paths are appended as the last two arguments - --disable-openapi-validation disables rendered templates validation against the Kubernetes OpenAPI Schema - --disable-validation disables rendered templates validation against the Kubernetes cluster you are currently pointing to. This is the same validation performed on an install - --dry-run string[="client"] --dry-run, --dry-run=client, or --dry-run=true disables cluster access and show diff as if it was install. Implies --install, --reset-values, and --disable-validation. --dry-run=server enables the cluster access with helm-get and the lookup template function. - --enable-dns enable DNS lookups when rendering templates - -D, --find-renames float32 Enable rename detection if set to any value greater than 0. If specified, the value denotes the maximum fraction of changed content as lines added + removed compared to total lines in a diff for considering it a rename. Only objects of the same Kind are attempted to be matched - -h, --help help for upgrade - --include-crds include CRDs in the diffing - --include-tests enable the diffing of the helm test hooks - --insecure-skip-tls-verify skip tls certificate checks for the chart download - --install enables diffing of releases that are not yet deployed via Helm (equivalent to --allow-unreleased, added to match "helm upgrade --install" command - --kube-context string name of the kubeconfig context to use - --kube-version string Kubernetes version used for Capabilities.KubeVersion - --kubeconfig string This flag is ignored, to allow passing of this top level flag to helm - -n, --namespace string namespace to assume the release to be installed into. Defaults to the current kube config namespace. - --no-hooks disable diffing of hooks - --normalize-manifests normalize manifests before running diff to exclude style differences from the output - --output string Possible values: diff, simple, template, json, structured, dyff. When set to "template", use the env var HELM_DIFF_TPL to specify the template. (default "diff") - --post-renderer string the path to an executable to be used for post rendering. If it exists in $PATH, the binary will be used, otherwise it will try to look for the executable at the given path - --post-renderer-args stringArray an argument to the post-renderer (can specify multiple) - --repo string specify the chart repository url to locate the requested chart - --reset-then-reuse-values reset the values to the ones built into the chart, apply the last release's values and merge in any new values. If '--reset-values' or '--reuse-values' is specified, this is ignored - --reset-values reset the values to the ones built into the chart and merge in any new values - --reuse-values reuse the last release's values and merge in any new values. If '--reset-values' is specified, this is ignored - --revision int revision of the release to use as the diff baseline instead of the newest one - --server-side string must be "true", "false" or "auto". Object updates run in the server instead of the client ("auto" defaults the value from the previous chart release's method) (default "auto") - --set stringArray set values on the command line (can specify multiple or separate values with commas: key1=val1,key2=val2) - --set-file stringArray set values from respective files specified via the command line (can specify multiple or separate values with commas: key1=path1,key2=path2) - --set-json stringArray set JSON values on the command line (can specify multiple or separate values with commas: key1=jsonval1,key2=jsonval2) - --set-literal stringArray set STRING literal values on the command line - --set-string stringArray set STRING values on the command line (can specify multiple or separate values with commas: key1=val1,key2=val2) - --show-secrets do not redact secret values in the output - --show-secrets-decoded decode secret values in the output - --skip-schema-validation skip validation of the rendered manifests against the Kubernetes OpenAPI schema - --storage-namespace string namespace where the helm release storage (Secret/ConfigMap) is located. Defaults to the target namespace (-n/--namespace) - --strip-trailing-cr strip trailing carriage return on input - --suppress stringArray allows suppression of the kinds listed in the diff output (can specify multiple, like '--suppress Deployment --suppress Service') - --suppress-output-line-regex stringArray a regex to suppress diff output lines that match - -q, --suppress-secrets suppress secrets in the output - --take-ownership if set, upgrade will ignore the check for helm annotations and take ownership of the existing resources - --three-way-merge use three-way-merge to compute patch and generate diff output - --three-way-merge-mode string how --three-way-merge applies the computed patch. Must be "auto", "server" or "client". "server" dry-runs the patch against the API server, which requires the patch permission. "client" merges locally and needs read access only, at the cost of not applying server-side defaulting and mutating webhooks. "auto" uses the server and falls back to the client when patching is not permitted (default "auto") - -f, --values valueFiles specify values in a YAML file (can specify multiple) (default []) - --version string specify the exact chart version to use. If this is not specified, the latest version is used + --allow-unreleased[=true|false] enables diffing of releases that are not yet deployed via Helm + -a, --api-versions stringArray Kubernetes api versions used for Capabilities.APIVersions + -C, --context int output NUM lines of context around changes (default -1) + --detailed-exitcode[=true|false] return a non-zero exit code when there are changes + --devel[=true|false] use development versions, too. Equivalent to version '>0.0.0-0'. If --version is set, this is ignored. + --diff-tool string command used to compare the manifests instead of the built-in --output renderers (can also be set via the env var HELM_DIFF_TOOL). The old and the new manifest file paths are appended as the last two arguments + --disable-openapi-validation[=true|false] disables rendered templates validation against the Kubernetes OpenAPI Schema + --disable-validation[=true|false] disables rendered templates validation against the Kubernetes cluster you are currently pointing to. This is the same validation performed on an install + --dry-run string[="client"] --dry-run, --dry-run=client, or --dry-run=true disables cluster access and show diff as if it was install. Implies --install, --reset-values, and --disable-validation. --dry-run=server enables the cluster access with helm-get and the lookup template function. + --enable-dns[=true|false] enable DNS lookups when rendering templates + -D, --find-renames float32 Enable rename detection if set to any value greater than 0. If specified, the value denotes the maximum fraction of changed content as lines added + removed compared to total lines in a diff for considering it a rename. Only objects of the same Kind are attempted to be matched + -h, --help[=true|false] help for upgrade + --include-crds[=true|false] include CRDs in the diffing + --include-tests[=true|false] enable the diffing of the helm test hooks + --insecure-skip-tls-verify[=true|false] skip tls certificate checks for the chart download + --install[=true|false] enables diffing of releases that are not yet deployed via Helm (equivalent to --allow-unreleased, added to match "helm upgrade --install" command + --kube-context string name of the kubeconfig context to use + --kube-version string Kubernetes version used for Capabilities.KubeVersion + --kubeconfig string This flag is ignored, to allow passing of this top level flag to helm + -n, --namespace string namespace to assume the release to be installed into. Defaults to the current kube config namespace. + --no-hooks[=true|false] disable diffing of hooks + --normalize-manifests[=true|false] normalize manifests before running diff to exclude style differences from the output + --output string Possible values: diff, simple, template, json, structured, dyff. When set to "template", use the env var HELM_DIFF_TPL to specify the template. (default "diff") + --post-renderer string the path to an executable to be used for post rendering. If it exists in $PATH, the binary will be used, otherwise it will try to look for the executable at the given path + --post-renderer-args stringArray an argument to the post-renderer (can specify multiple) + --repo string specify the chart repository url to locate the requested chart + --reset-then-reuse-values[=true|false] reset the values to the ones built into the chart, apply the last release's values and merge in any new values. If '--reset-values' or '--reuse-values' is specified, this is ignored + --reset-values[=true|false] reset the values to the ones built into the chart and merge in any new values + --reuse-values[=true|false] reuse the last release's values and merge in any new values. If '--reset-values' is specified, this is ignored + --revision int revision of the release to use as the diff baseline instead of the newest one + --server-side string must be "true", "false" or "auto". Object updates run in the server instead of the client ("auto" defaults the value from the previous chart release's method) (default "auto") + --set stringArray set values on the command line (can specify multiple or separate values with commas: key1=val1,key2=val2) + --set-file stringArray set values from respective files specified via the command line (can specify multiple or separate values with commas: key1=path1,key2=path2) + --set-json stringArray set JSON values on the command line (can specify multiple or separate values with commas: key1=jsonval1,key2=jsonval2) + --set-literal stringArray set STRING literal values on the command line + --set-string stringArray set STRING values on the command line (can specify multiple or separate values with commas: key1=val1,key2=val2) + --show-secrets[=true|false] do not redact secret values in the output + --show-secrets-decoded[=true|false] decode secret values in the output + --skip-schema-validation[=true|false] skip validation of the rendered manifests against the Kubernetes OpenAPI schema + --storage-namespace string namespace where the helm release storage (Secret/ConfigMap) is located. Defaults to the target namespace (-n/--namespace) + --strip-trailing-cr[=true|false] strip trailing carriage return on input + --suppress stringArray allows suppression of the kinds listed in the diff output (can specify multiple, like '--suppress Deployment --suppress Service') + --suppress-output-line-regex stringArray a regex to suppress diff output lines that match + -q, --suppress-secrets[=true|false] suppress secrets in the output + --take-ownership[=true|false] if set, upgrade will ignore the check for helm annotations and take ownership of the existing resources + --three-way-merge[=true|false] use three-way-merge to compute patch and generate diff output + --three-way-merge-mode string how --three-way-merge applies the computed patch. Must be "auto", "server" or "client". "server" dry-runs the patch against the API server, which requires the patch permission. "client" merges locally and needs read access only, at the cost of not applying server-side defaulting and mutating webhooks. "auto" uses the server and falls back to the client when patching is not permitted (default "auto") + -f, --values valueFiles specify values in a YAML file (can specify multiple) (default []) + --version string specify the exact chart version to use. If this is not specified, the latest version is used Global Flags: --color color output. Also accepts always, never and auto, the values of the global --color flag of Helm 4. You can control the value for this flag via HELM_DIFF_COLOR=[true|false]. If both --no-color and --color are unspecified, coloring enabled only when the stdout is a term and TERM is not "dumb" @@ -550,20 +550,20 @@ Usage: Flags: -C, --context int output NUM lines of context around changes (default -1) - --detailed-exitcode return a non-zero exit code when there are changes + --detailed-exitcode[=true|false] return a non-zero exit code when there are changes --diff-tool string command used to compare the manifests instead of the built-in --output renderers (can also be set via the env var HELM_DIFF_TOOL). The old and the new manifest file paths are appended as the last two arguments -D, --find-renames float32 Enable rename detection if set to any value greater than 0. If specified, the value denotes the maximum fraction of changed content as lines added + removed compared to total lines in a diff for considering it a rename. Only objects of the same Kind are attempted to be matched - -h, --help help for release - --include-tests enable the diffing of the helm test hooks + -h, --help[=true|false] help for release + --include-tests[=true|false] enable the diffing of the helm test hooks --kube-context string name of the kubeconfig context to use - --normalize-manifests normalize manifests before running diff to exclude style differences from the output + --normalize-manifests[=true|false] normalize manifests before running diff to exclude style differences from the output --output string Possible values: diff, simple, template, json, structured, dyff. When set to "template", use the env var HELM_DIFF_TPL to specify the template. (default "diff") - --show-secrets do not redact secret values in the output - --show-secrets-decoded decode secret values in the output - --strip-trailing-cr strip trailing carriage return on input + --show-secrets[=true|false] do not redact secret values in the output + --show-secrets-decoded[=true|false] decode secret values in the output + --strip-trailing-cr[=true|false] strip trailing carriage return on input --suppress stringArray allows suppression of the kinds listed in the diff output (can specify multiple, like '--suppress Deployment --suppress Service') --suppress-output-line-regex stringArray a regex to suppress diff output lines that match - -q, --suppress-secrets suppress secrets in the output + -q, --suppress-secrets[=true|false] suppress secrets in the output Global Flags: --color color output. Also accepts always, never and auto, the values of the global --color flag of Helm 4. You can control the value for this flag via HELM_DIFF_COLOR=[true|false]. If both --no-color and --color are unspecified, coloring enabled only when the stdout is a term and TERM is not "dumb" @@ -594,22 +594,22 @@ Usage: Flags: -C, --context int output NUM lines of context around changes (default -1) - --detailed-exitcode return a non-zero exit code when there are changes + --detailed-exitcode[=true|false] return a non-zero exit code when there are changes --diff-tool string command used to compare the manifests instead of the built-in --output renderers (can also be set via the env var HELM_DIFF_TOOL). The old and the new manifest file paths are appended as the last two arguments -D, --find-renames float32 Enable rename detection if set to any value greater than 0. If specified, the value denotes the maximum fraction of changed content as lines added + removed compared to total lines in a diff for considering it a rename. Only objects of the same Kind are attempted to be matched - -h, --help help for revision - --include-tests enable the diffing of the helm test hooks + -h, --help[=true|false] help for revision + --include-tests[=true|false] enable the diffing of the helm test hooks --kube-context string name of the kubeconfig context to use -n, --namespace string namespace to assume the release to be installed into. Defaults to the current kube config namespace. - --normalize-manifests normalize manifests before running diff to exclude style differences from the output + --normalize-manifests[=true|false] normalize manifests before running diff to exclude style differences from the output --output string Possible values: diff, simple, template, json, structured, dyff. When set to "template", use the env var HELM_DIFF_TPL to specify the template. (default "diff") - --show-secrets do not redact secret values in the output - --show-secrets-decoded decode secret values in the output + --show-secrets[=true|false] do not redact secret values in the output + --show-secrets-decoded[=true|false] decode secret values in the output --storage-namespace string namespace where the helm release storage (Secret/ConfigMap) is located. Defaults to the target namespace (-n/--namespace) - --strip-trailing-cr strip trailing carriage return on input + --strip-trailing-cr[=true|false] strip trailing carriage return on input --suppress stringArray allows suppression of the kinds listed in the diff output (can specify multiple, like '--suppress Deployment --suppress Service') --suppress-output-line-regex stringArray a regex to suppress diff output lines that match - -q, --suppress-secrets suppress secrets in the output + -q, --suppress-secrets[=true|false] suppress secrets in the output Global Flags: --color color output. Also accepts always, never and auto, the values of the global --color flag of Helm 4. You can control the value for this flag via HELM_DIFF_COLOR=[true|false]. If both --no-color and --color are unspecified, coloring enabled only when the stdout is a term and TERM is not "dumb" @@ -634,22 +634,22 @@ Examples: Flags: -C, --context int output NUM lines of context around changes (default -1) - --detailed-exitcode return a non-zero exit code when there are changes + --detailed-exitcode[=true|false] return a non-zero exit code when there are changes --diff-tool string command used to compare the manifests instead of the built-in --output renderers (can also be set via the env var HELM_DIFF_TOOL). The old and the new manifest file paths are appended as the last two arguments -D, --find-renames float32 Enable rename detection if set to any value greater than 0. If specified, the value denotes the maximum fraction of changed content as lines added + removed compared to total lines in a diff for considering it a rename. Only objects of the same Kind are attempted to be matched - -h, --help help for rollback - --include-tests enable the diffing of the helm test hooks + -h, --help[=true|false] help for rollback + --include-tests[=true|false] enable the diffing of the helm test hooks --kube-context string name of the kubeconfig context to use -n, --namespace string namespace to assume the release to be installed into. Defaults to the current kube config namespace. - --normalize-manifests normalize manifests before running diff to exclude style differences from the output + --normalize-manifests[=true|false] normalize manifests before running diff to exclude style differences from the output --output string Possible values: diff, simple, template, json, structured, dyff. When set to "template", use the env var HELM_DIFF_TPL to specify the template. (default "diff") - --show-secrets do not redact secret values in the output - --show-secrets-decoded decode secret values in the output + --show-secrets[=true|false] do not redact secret values in the output + --show-secrets-decoded[=true|false] decode secret values in the output --storage-namespace string namespace where the helm release storage (Secret/ConfigMap) is located. Defaults to the target namespace (-n/--namespace) - --strip-trailing-cr strip trailing carriage return on input + --strip-trailing-cr[=true|false] strip trailing carriage return on input --suppress stringArray allows suppression of the kinds listed in the diff output (can specify multiple, like '--suppress Deployment --suppress Service') --suppress-output-line-regex stringArray a regex to suppress diff output lines that match - -q, --suppress-secrets suppress secrets in the output + -q, --suppress-secrets[=true|false] suppress secrets in the output Global Flags: --color color output. Also accepts always, never and auto, the values of the global --color flag of Helm 4. You can control the value for this flag via HELM_DIFF_COLOR=[true|false]. If both --no-color and --color are unspecified, coloring enabled only when the stdout is a term and TERM is not "dumb" diff --git a/go.mod b/go.mod index 7f968dc5..298b85c4 100644 --- a/go.mod +++ b/go.mod @@ -13,7 +13,7 @@ require ( github.com/json-iterator/go v1.1.12 github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d github.com/spf13/cobra v1.10.2 - github.com/spf13/pflag v1.0.10 + github.com/spf13/pflag v1.1.0 github.com/stretchr/testify v1.12.1 golang.org/x/term v0.48.0 gopkg.in/yaml.v2 v2.4.0 diff --git a/go.sum b/go.sum index 452eb779..bbc692e1 100644 --- a/go.sum +++ b/go.sum @@ -296,8 +296,8 @@ github.com/spf13/cast v1.10.0/go.mod h1:jNfB8QC9IA6ZuY2ZjDp0KtFO2LZZlg4S/7bzP6qq github.com/spf13/cobra v1.10.2 h1:DMTTonx5m65Ic0GOoRY2c16WCbHxOOw6xxezuLaBpcU= github.com/spf13/cobra v1.10.2/go.mod h1:7C1pvHqHw5A4vrJfjNwvOdzYu0Gml16OCs2GRiTUUS4= github.com/spf13/pflag v1.0.9/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= -github.com/spf13/pflag v1.0.10 h1:4EBh2KAYBwaONj6b2Ye1GiHfwjqyROoF4RwYO+vPwFk= -github.com/spf13/pflag v1.0.10/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= +github.com/spf13/pflag v1.1.0 h1:6W6MbVUrnMb8PEhjkqwsVLY7ryuzRfFHF4mQd7L94ag= +github.com/spf13/pflag v1.1.0/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.5.3 h1:jmXUvGomnU1o3W/V5h2VEradbpJDwGrzugQQvL0POH4= github.com/stretchr/objx v0.5.3/go.mod h1:rDQraq+vQZU7Fde9LOZLr8Tax6zZvy4kuNKF+QYS+U0=