StringSliceVar allows for more flexibility when passing vars to list
flags.
Both formats will be supported:
- '--foo=one --foo=two'
- '--foo=one,two'
Signed-off-by: Claudia Beresford <claudiaberesford@gmail.com>
bootstrapGitHubCmd.Flags().StringArrayVar(&githubArgs.teams,"team",[]string{},"GitHub team to be given maintainer access")
bootstrapGitHubCmd.Flags().StringSliceVar(&githubArgs.teams,"team",[]string{},"GitHub team to be given maintainer access (also accepts comma-separated values)")
bootstrapGitHubCmd.Flags().BoolVar(&githubArgs.personal,"personal",false,"if true, the owner is assumed to be a GitHub user; otherwise an org")
bootstrapGitHubCmd.Flags().BoolVar(&githubArgs.personal,"personal",false,"if true, the owner is assumed to be a GitHub user; otherwise an org")
bootstrapGitHubCmd.Flags().BoolVar(&githubArgs.private,"private",true,"if true, the repository is setup or configured as private")
bootstrapGitHubCmd.Flags().BoolVar(&githubArgs.private,"private",true,"if true, the repository is setup or configured as private")
bootstrapGitLabCmd.Flags().StringArrayVar(&gitlabArgs.teams,"team",[]string{},"GitLab teams to be given maintainer access")
bootstrapGitLabCmd.Flags().StringSliceVar(&gitlabArgs.teams,"team",[]string{},"GitLab teams to be given maintainer access (also accepts comma-separated values)")
bootstrapGitLabCmd.Flags().BoolVar(&gitlabArgs.personal,"personal",false,"if true, the owner is assumed to be a GitLab user; otherwise a group")
bootstrapGitLabCmd.Flags().BoolVar(&gitlabArgs.personal,"personal",false,"if true, the owner is assumed to be a GitLab user; otherwise a group")
bootstrapGitLabCmd.Flags().BoolVar(&gitlabArgs.private,"private",true,"if true, the repository is setup or configured as private")
bootstrapGitLabCmd.Flags().BoolVar(&gitlabArgs.private,"private",true,"if true, the repository is setup or configured as private")
createAlertCmd.Flags().StringVar(&alertArgs.providerRef,"provider-ref","","reference to provider")
createAlertCmd.Flags().StringVar(&alertArgs.providerRef,"provider-ref","","reference to provider")
createAlertCmd.Flags().StringVar(&alertArgs.eventSeverity,"event-severity","","severity of events to send alerts for")
createAlertCmd.Flags().StringVar(&alertArgs.eventSeverity,"event-severity","","severity of events to send alerts for")
createAlertCmd.Flags().StringArrayVar(&alertArgs.eventSources,"event-source",[]string{},"sources that should generate alerts (<kind>/<name>)")
createAlertCmd.Flags().StringSliceVar(&alertArgs.eventSources,"event-source",[]string{},"sources that should generate alerts (<kind>/<name>), also accepts comma-separated values")
createHelmReleaseCmd.Flags().StringVar(&helmReleaseArgs.chart,"chart","","Helm chart name or path")
createHelmReleaseCmd.Flags().StringVar(&helmReleaseArgs.chart,"chart","","Helm chart name or path")
createHelmReleaseCmd.Flags().StringVar(&helmReleaseArgs.chartVersion,"chart-version","","Helm chart version, accepts a semver range (ignored for charts from GitRepository sources)")
createHelmReleaseCmd.Flags().StringVar(&helmReleaseArgs.chartVersion,"chart-version","","Helm chart version, accepts a semver range (ignored for charts from GitRepository sources)")
createHelmReleaseCmd.Flags().StringArrayVar(&helmReleaseArgs.dependsOn,"depends-on",nil,"HelmReleases that must be ready before this release can be installed, supported formats '<name>' and '<namespace>/<name>'")
createHelmReleaseCmd.Flags().StringSliceVar(&helmReleaseArgs.dependsOn,"depends-on",nil,"HelmReleases that must be ready before this release can be installed, supported formats '<name>' and '<namespace>/<name>'")
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().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().StringArrayVar(&helmReleaseArgs.valuesFiles,"values",nil,"local path to values.yaml files")
createHelmReleaseCmd.Flags().StringSliceVar(&helmReleaseArgs.valuesFiles,"values",nil,"local path to values.yaml files, also accepts comma-separated values")
createKsCmd.Flags().StringArrayVar(&kustomizationArgs.healthCheck,"health-check",nil,"workload to be included in the health assessment, in the format '<kind>/<name>.<namespace>'")
createKsCmd.Flags().StringSliceVar(&kustomizationArgs.healthCheck,"health-check",nil,"workload to be included in the health assessment, in the format '<kind>/<name>.<namespace>'")
createKsCmd.Flags().DurationVar(&kustomizationArgs.healthTimeout,"health-check-timeout",2*time.Minute,"timeout of health checking operations")
createKsCmd.Flags().DurationVar(&kustomizationArgs.healthTimeout,"health-check-timeout",2*time.Minute,"timeout of health checking operations")
createKsCmd.Flags().StringVar(&kustomizationArgs.validation,"validation","","validate the manifests before applying them on the cluster, can be 'client' or 'server'")
createKsCmd.Flags().StringVar(&kustomizationArgs.validation,"validation","","validate the manifests before applying them on the cluster, can be 'client' or 'server'")
createKsCmd.Flags().StringArrayVar(&kustomizationArgs.dependsOn,"depends-on",nil,"Kustomization that must be ready before this Kustomization can be applied, supported formats '<name>' and '<namespace>/<name>'")
createKsCmd.Flags().StringSliceVar(&kustomizationArgs.dependsOn,"depends-on",nil,"Kustomization that must be ready before this Kustomization can be applied, supported formats '<name>' and '<namespace>/<name>', also accepts comma-separated values")
createKsCmd.Flags().StringVar(&kustomizationArgs.saName,"service-account","","the name of the service account to impersonate when reconciling this Kustomization")
createKsCmd.Flags().StringVar(&kustomizationArgs.saName,"service-account","","the name of the service account to impersonate when reconciling this Kustomization")
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")