Allow specifying the name of the Kubernetes Secret that contains a key with the kubeconfig file for connecting to a remote cluster.
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
@ -109,19 +109,20 @@ var createHelmReleaseCmd = &cobra.Command{
}
}
typehelmReleaseFlagsstruct{
typehelmReleaseFlagsstruct{
namestring
namestring
sourceflags.HelmChartSource
sourceflags.HelmChartSource
dependsOn[]string
dependsOn[]string
chartstring
chartstring
chartVersionstring
chartVersionstring
targetNamespacestring
targetNamespacestring
createNamespacebool
createNamespacebool
valuesFiles[]string
valuesFiles[]string
valuesFromflags.HelmReleaseValuesFrom
valuesFromflags.HelmReleaseValuesFrom
saNamestring
saNamestring
crdsflags.CRDsPolicy
crdsflags.CRDsPolicy
reconcileStrategystring
reconcileStrategystring
chartIntervaltime.Duration
chartIntervaltime.Duration
kubeConfigSecretRefstring
}
}
varhelmReleaseArgshelmReleaseFlags
varhelmReleaseArgshelmReleaseFlags
@ -140,6 +141,7 @@ func init() {
createHelmReleaseCmd.Flags().StringSliceVar(&helmReleaseArgs.valuesFiles,"values",nil,"local path to values.yaml files, also accepts comma-separated values")
createHelmReleaseCmd.Flags().StringSliceVar(&helmReleaseArgs.valuesFiles,"values",nil,"local path to values.yaml files, also accepts comma-separated values")
createHelmReleaseCmd.Flags().StringVar(&helmReleaseArgs.kubeConfigSecretRef,"kubeconfig-secret-ref","","the name of the Kubernetes Secret that contains a key with the kubeconfig file for connecting to a remote cluster")
createKsCmd.Flags().StringVar(&kustomizationArgs.decryptionSecret,"decryption-secret","","set the Kubernetes secret name that contains the OpenPGP private keys used for sops decryption")
createKsCmd.Flags().StringVar(&kustomizationArgs.decryptionSecret,"decryption-secret","","set the Kubernetes secret name that contains the OpenPGP private keys used for sops decryption")
createKsCmd.Flags().StringVar(&kustomizationArgs.targetNamespace,"target-namespace","","overrides the namespace of all Kustomization objects reconciled by this Kustomization")
createKsCmd.Flags().StringVar(&kustomizationArgs.targetNamespace,"target-namespace","","overrides the namespace of all Kustomization objects reconciled by this Kustomization")
createKsCmd.Flags().StringVar(&kustomizationArgs.kubeConfigSecretRef,"kubeconfig-secret-ref","","the name of the Kubernetes Secret that contains a key with the kubeconfig file for connecting to a remote cluster")
createKsCmd.Flags().MarkDeprecated("validation","this arg is no longer used, all resources are validated using server-side apply dry-run")
createKsCmd.Flags().MarkDeprecated("validation","this arg is no longer used, all resources are validated using server-side apply dry-run")