Skip to content

Commit d0b0f72

Browse files
Copilotyxxhero
andcommitted
Update README documentation for --kube-context flag
Co-authored-by: yxxhero <[email protected]>
1 parent b542ea9 commit d0b0f72

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,9 @@ Usage:
148148
Examples:
149149
helm diff upgrade my-release stable/postgresql --values values.yaml
150150
151+
# Use a specific kubeconfig context
152+
helm diff upgrade my-release stable/postgresql --kube-context production
153+
151154
# Set HELM_DIFF_IGNORE_UNKNOWN_FLAGS=true to ignore unknown flags
152155
# It's useful when you're using `helm-diff` in a `helm upgrade` wrapper.
153156
# See https://github.com/databus23/helm-diff/issues/278 for more information.
@@ -191,6 +194,7 @@ Flags:
191194
--include-tests enable the diffing of the helm test hooks
192195
--insecure-skip-tls-verify skip tls certificate checks for the chart download
193196
--install enables diffing of releases that are not yet deployed via Helm (equivalent to --allow-unreleased, added to match "helm upgrade --install" command
197+
--kube-context string name of the kubeconfig context to use
194198
--kube-version string Kubernetes version used for Capabilities.KubeVersion
195199
--kubeconfig string This flag is ignored, to allow passing of this top level flag to helm
196200
--no-hooks disable diffing of hooks

cmd/kube_context_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,4 +83,4 @@ func TestKubeContextInDiffCmd(t *testing.T) {
8383
if d.kubeContext != "" {
8484
t.Errorf("Expected kubeContext to be empty, got '%s'", d.kubeContext)
8585
}
86-
}
86+
}

0 commit comments

Comments
 (0)