@ -108,17 +109,19 @@ 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
chartIntervaltime.Duration
}
}
varhelmReleaseArgshelmReleaseFlags
varhelmReleaseArgshelmReleaseFlags
@ -132,6 +135,8 @@ func init() {
createHelmReleaseCmd.Flags().StringVar(&helmReleaseArgs.targetNamespace,"target-namespace","","namespace to install this release, defaults to the HelmRelease namespace")
createHelmReleaseCmd.Flags().StringVar(&helmReleaseArgs.targetNamespace,"target-namespace","","namespace to install this release, defaults to the HelmRelease namespace")
createHelmReleaseCmd.Flags().BoolVar(&helmReleaseArgs.createNamespace,"create-target-namespace",false,"create the target namespace if it does not exist")
createHelmReleaseCmd.Flags().BoolVar(&helmReleaseArgs.createNamespace,"create-target-namespace",false,"create the target namespace if it does not exist")
createHelmReleaseCmd.Flags().StringVar(&helmReleaseArgs.saName,"service-account","","the name of the service account to impersonate when reconciling this HelmRelease")
createHelmReleaseCmd.Flags().StringVar(&helmReleaseArgs.saName,"service-account","","the name of the service account to impersonate when reconciling this HelmRelease")
createHelmReleaseCmd.Flags().StringVar(&helmReleaseArgs.reconcileStrategy,"reconcile-strategy","ChartVersion","the reconcile strategy for helm chart created by the helm release(accepted values: Revision and ChartRevision)")
createHelmReleaseCmd.Flags().DurationVarP(&helmReleaseArgs.chartInterval,"chart-interval","",0,"the interval of which to check for new chart versions")
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")