Add name completion to debug commands

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
pull/5117/head
Stefan Prodan 1 month ago
parent 5b740c45d1
commit 9b1b5e8a51
No known key found for this signature in database
GPG Key ID: 3299AEB0E4085BAF

@ -44,10 +44,10 @@ WARNING: This command will print sensitive information if Kubernetes Secrets are
flux debug hr podinfo --show-values > values.yaml`, flux debug hr podinfo --show-values > values.yaml`,
RunE: debugHelmReleaseCmdRun, RunE: debugHelmReleaseCmdRun,
Args: cobra.ExactArgs(1), Args: cobra.ExactArgs(1),
ValidArgsFunction: resourceNamesCompletionFunc(helmv2.GroupVersion.WithKind(helmv2.HelmReleaseKind)),
} }
type debugHelmReleaseFlags struct { type debugHelmReleaseFlags struct {
name string
showStatus bool showStatus bool
showValues bool showValues bool
} }

@ -46,10 +46,10 @@ WARNING: This command will print sensitive information if Kubernetes Secrets are
flux debug ks podinfo --show-vars > vars.env`, flux debug ks podinfo --show-vars > vars.env`,
RunE: debugKustomizationCmdRun, RunE: debugKustomizationCmdRun,
Args: cobra.ExactArgs(1), Args: cobra.ExactArgs(1),
ValidArgsFunction: resourceNamesCompletionFunc(kustomizev1.GroupVersion.WithKind(kustomizev1.KustomizationKind)),
} }
type debugKustomizationFlags struct { type debugKustomizationFlags struct {
name string
showStatus bool showStatus bool
showVars bool showVars bool
} }

Loading…
Cancel
Save