Skip to content

Commit

Permalink
fix(doc): remove references to werf.yaml and .helm from commands that…
Browse files Browse the repository at this point in the history
… ignore project configs

Signed-off-by: Ilya Lesikov <ilya@lesikov.com>
  • Loading branch information
ilya-lesikov committed Apr 5, 2024
1 parent 0babe21 commit 9ce7b84
Show file tree
Hide file tree
Showing 42 changed files with 155 additions and 131 deletions.
2 changes: 1 addition & 1 deletion cmd/werf/build/main.go
Expand Up @@ -85,7 +85,7 @@ func NewCmd(ctx context.Context) *cobra.Command {

common.SetupDockerConfig(&commonCmdData, cmd, "Command needs granted permissions to read, pull and push images into the specified repo, to pull base images")
common.SetupInsecureRegistry(&commonCmdData, cmd)
common.SetupInsecureHelmDependencies(&commonCmdData, cmd)
common.SetupInsecureHelmDependencies(&commonCmdData, cmd, true)
common.SetupSkipTlsVerifyRegistry(&commonCmdData, cmd)

common.SetupIntrospectAfterError(&commonCmdData, cmd)
Expand Down
10 changes: 5 additions & 5 deletions cmd/werf/bundle/apply/apply.go
Expand Up @@ -96,7 +96,7 @@ func NewCmd(ctx context.Context) *cobra.Command {

common.SetupDockerConfig(&commonCmdData, cmd, "Command needs granted permissions to read, pull and push images into the specified repo, to pull base images")
common.SetupInsecureRegistry(&commonCmdData, cmd)
common.SetupInsecureHelmDependencies(&commonCmdData, cmd)
common.SetupInsecureHelmDependencies(&commonCmdData, cmd, false)
common.SetupSkipTlsVerifyRegistry(&commonCmdData, cmd)

common.SetupLogOptions(&commonCmdData, cmd)
Expand All @@ -109,8 +109,8 @@ func NewCmd(ctx context.Context) *cobra.Command {
common.SetupSet(&commonCmdData, cmd)
common.SetupSetString(&commonCmdData, cmd)
common.SetupSetFile(&commonCmdData, cmd)
common.SetupValues(&commonCmdData, cmd)
common.SetupSecretValues(&commonCmdData, cmd)
common.SetupValues(&commonCmdData, cmd, false)
common.SetupSecretValues(&commonCmdData, cmd, false)
common.SetupIgnoreSecretKey(&commonCmdData, cmd)

commonCmdData.SetupSkipDependenciesRepoRefresh(cmd)
Expand All @@ -122,8 +122,8 @@ func NewCmd(ctx context.Context) *cobra.Command {
common.SetupKubeConfigBase64(&commonCmdData, cmd)
common.SetupKubeContext(&commonCmdData, cmd)

common.SetupRelease(&commonCmdData, cmd)
common.SetupNamespace(&commonCmdData, cmd)
common.SetupRelease(&commonCmdData, cmd, false)
common.SetupNamespace(&commonCmdData, cmd, false)
common.SetupStatusProgressPeriod(&commonCmdData, cmd)
common.SetupHooksStatusProgressPeriod(&commonCmdData, cmd)
common.SetupReleasesHistoryMax(&commonCmdData, cmd)
Expand Down
2 changes: 1 addition & 1 deletion cmd/werf/bundle/copy/copy.go
Expand Up @@ -60,7 +60,7 @@ func NewCmd(ctx context.Context) *cobra.Command {

common.SetupDockerConfig(&commonCmdData, cmd, "Command needs granted permissions to read, pull and push images into the specified repos")
common.SetupInsecureRegistry(&commonCmdData, cmd)
common.SetupInsecureHelmDependencies(&commonCmdData, cmd)
common.SetupInsecureHelmDependencies(&commonCmdData, cmd, false)
common.SetupSkipTlsVerifyRegistry(&commonCmdData, cmd)

common.SetupLogOptions(&commonCmdData, cmd)
Expand Down
2 changes: 1 addition & 1 deletion cmd/werf/bundle/download/download.go
Expand Up @@ -68,7 +68,7 @@ func NewCmd(ctx context.Context) *cobra.Command {
common.SetupHomeDir(&commonCmdData, cmd, common.SetupHomeDirOptions{})

common.SetupInsecureRegistry(&commonCmdData, cmd)
common.SetupInsecureHelmDependencies(&commonCmdData, cmd)
common.SetupInsecureHelmDependencies(&commonCmdData, cmd, false)
common.SetupSkipTlsVerifyRegistry(&commonCmdData, cmd)

common.SetupRepoOptions(&commonCmdData, cmd, common.RepoDataOptions{})
Expand Down
4 changes: 2 additions & 2 deletions cmd/werf/bundle/export/export.go
Expand Up @@ -108,7 +108,7 @@ func NewCmd(ctx context.Context) *cobra.Command {

common.SetupDockerConfig(&commonCmdData, cmd, "Command needs granted permissions to read, pull and push images into the specified repo and to pull base images")
common.SetupInsecureRegistry(&commonCmdData, cmd)
common.SetupInsecureHelmDependencies(&commonCmdData, cmd)
common.SetupInsecureHelmDependencies(&commonCmdData, cmd, true)
common.SetupSkipTlsVerifyRegistry(&commonCmdData, cmd)

common.SetupLogOptions(&commonCmdData, cmd)
Expand All @@ -122,7 +122,7 @@ func NewCmd(ctx context.Context) *cobra.Command {
common.SetupSet(&commonCmdData, cmd)
common.SetupSetString(&commonCmdData, cmd)
common.SetupSetFile(&commonCmdData, cmd)
common.SetupValues(&commonCmdData, cmd)
common.SetupValues(&commonCmdData, cmd, true)

commonCmdData.SetupDisableDefaultValues(cmd)
commonCmdData.SetupDisableDefaultSecretValues(cmd)
Expand Down
6 changes: 3 additions & 3 deletions cmd/werf/bundle/publish/publish.go
Expand Up @@ -93,7 +93,7 @@ func NewCmd(ctx context.Context) *cobra.Command {

common.SetupDockerConfig(&commonCmdData, cmd, "Command needs granted permissions to read, pull and push images into the specified repo and to pull base images")
common.SetupInsecureRegistry(&commonCmdData, cmd)
common.SetupInsecureHelmDependencies(&commonCmdData, cmd)
common.SetupInsecureHelmDependencies(&commonCmdData, cmd, true)
common.SetupSkipTlsVerifyRegistry(&commonCmdData, cmd)

common.SetupLogOptions(&commonCmdData, cmd)
Expand All @@ -111,8 +111,8 @@ func NewCmd(ctx context.Context) *cobra.Command {
common.SetupSet(&commonCmdData, cmd)
common.SetupSetString(&commonCmdData, cmd)
common.SetupSetFile(&commonCmdData, cmd)
common.SetupValues(&commonCmdData, cmd)
common.SetupSecretValues(&commonCmdData, cmd)
common.SetupValues(&commonCmdData, cmd, true)
common.SetupSecretValues(&commonCmdData, cmd, true)
common.SetupIgnoreSecretKey(&commonCmdData, cmd)

commonCmdData.SetupDisableDefaultValues(cmd)
Expand Down
10 changes: 5 additions & 5 deletions cmd/werf/bundle/render/render.go
Expand Up @@ -72,7 +72,7 @@ func NewCmd(ctx context.Context) *cobra.Command {

common.SetupDockerConfig(&commonCmdData, cmd, "Command needs granted permissions to read, pull and push images into the specified repo, to pull base images")
common.SetupInsecureRegistry(&commonCmdData, cmd)
common.SetupInsecureHelmDependencies(&commonCmdData, cmd)
common.SetupInsecureHelmDependencies(&commonCmdData, cmd, false)
common.SetupSkipTlsVerifyRegistry(&commonCmdData, cmd)

common.SetupLogOptionsDefaultQuiet(&commonCmdData, cmd)
Expand All @@ -85,13 +85,13 @@ func NewCmd(ctx context.Context) *cobra.Command {
common.SetupSet(&commonCmdData, cmd)
common.SetupSetString(&commonCmdData, cmd)
common.SetupSetFile(&commonCmdData, cmd)
common.SetupValues(&commonCmdData, cmd)
common.SetupSecretValues(&commonCmdData, cmd)
common.SetupValues(&commonCmdData, cmd, false)
common.SetupSecretValues(&commonCmdData, cmd, false)
common.SetupIgnoreSecretKey(&commonCmdData, cmd)
commonCmdData.SetupDisableDefaultSecretValues(cmd)

common.SetupRelease(&commonCmdData, cmd)
common.SetupNamespace(&commonCmdData, cmd)
common.SetupRelease(&commonCmdData, cmd, false)
common.SetupNamespace(&commonCmdData, cmd, false)

common.SetupKubeVersion(&commonCmdData, cmd)

Expand Down
2 changes: 1 addition & 1 deletion cmd/werf/cleanup/cleanup.go
Expand Up @@ -76,7 +76,7 @@ func NewCmd(ctx context.Context) *cobra.Command {

common.SetupDockerConfig(&commonCmdData, cmd, "Command needs granted permissions to read, pull and delete images from the specified repo")
common.SetupInsecureRegistry(&commonCmdData, cmd)
common.SetupInsecureHelmDependencies(&commonCmdData, cmd)
common.SetupInsecureHelmDependencies(&commonCmdData, cmd, true)
common.SetupSkipTlsVerifyRegistry(&commonCmdData, cmd)

common.SetupScanContextNamespaceOnly(&commonCmdData, cmd)
Expand Down
62 changes: 50 additions & 12 deletions cmd/werf/common/common.go
Expand Up @@ -398,14 +398,30 @@ func SetupEnvironment(cmdData *CmdData, cmd *cobra.Command) {
cmd.Flags().StringVarP(cmdData.Environment, "env", "", os.Getenv("WERF_ENV"), "Use specified environment (default $WERF_ENV)")
}

func SetupRelease(cmdData *CmdData, cmd *cobra.Command) {
func SetupRelease(cmdData *CmdData, cmd *cobra.Command, projectConfigParsed bool) {
cmdData.Release = new(string)
cmd.Flags().StringVarP(cmdData.Release, "release", "", os.Getenv("WERF_RELEASE"), "Use specified Helm release name (default [[ project ]]-[[ env ]] template or deploy.helmRelease custom template from werf.yaml or $WERF_RELEASE)")

var usage string
if projectConfigParsed {
usage = "Use specified Helm release name (default [[ project ]]-[[ env ]] template or deploy.helmRelease custom template from werf.yaml or $WERF_RELEASE)"
} else {
usage = "Use specified Helm release name (default $WERF_RELEASE)"
}

cmd.Flags().StringVarP(cmdData.Release, "release", "", os.Getenv("WERF_RELEASE"), usage)
}

func SetupNamespace(cmdData *CmdData, cmd *cobra.Command) {
func SetupNamespace(cmdData *CmdData, cmd *cobra.Command, projectConfigParsed bool) {
cmdData.Namespace = new(string)
cmd.Flags().StringVarP(cmdData.Namespace, "namespace", "", os.Getenv("WERF_NAMESPACE"), "Use specified Kubernetes namespace (default [[ project ]]-[[ env ]] template or deploy.namespace custom template from werf.yaml or $WERF_NAMESPACE)")

var usage string
if projectConfigParsed {
usage = "Use specified Kubernetes namespace (default [[ project ]]-[[ env ]] template or deploy.namespace custom template from werf.yaml or $WERF_NAMESPACE)"
} else {
usage = "Use specified Kubernetes namespace (default $WERF_NAMESPACE)"
}

cmd.Flags().StringVarP(cmdData.Namespace, "namespace", "", os.Getenv("WERF_NAMESPACE"), usage)
}

func SetupAddAnnotations(cmdData *CmdData, cmd *cobra.Command) {
Expand Down Expand Up @@ -601,9 +617,17 @@ func hooksStatusProgressPeriodDefaultValue() *int64 {
}
}

func SetupInsecureHelmDependencies(cmdData *CmdData, cmd *cobra.Command) {
func SetupInsecureHelmDependencies(cmdData *CmdData, cmd *cobra.Command, projectConfigParsed bool) {
cmdData.InsecureHelmDependencies = new(bool)
cmd.Flags().BoolVarP(cmdData.InsecureHelmDependencies, "insecure-helm-dependencies", "", util.GetBoolEnvironmentDefaultFalse("WERF_INSECURE_HELM_DEPENDENCIES"), "Allow insecure oci registries to be used in the .helm/Chart.yaml dependencies configuration (default $WERF_INSECURE_HELM_DEPENDENCIES)")

var usage string
if projectConfigParsed {
usage = "Allow insecure oci registries to be used in the .helm/Chart.yaml dependencies configuration (default $WERF_INSECURE_HELM_DEPENDENCIES)"
} else {
usage = "Allow insecure oci registries to be used in the Chart.yaml dependencies configuration (default $WERF_INSECURE_HELM_DEPENDENCIES)"
}

cmd.Flags().BoolVarP(cmdData.InsecureHelmDependencies, "insecure-helm-dependencies", "", util.GetBoolEnvironmentDefaultFalse("WERF_INSECURE_HELM_DEPENDENCIES"), usage)
}

func SetupInsecureRegistry(cmdData *CmdData, cmd *cobra.Command) {
Expand Down Expand Up @@ -831,10 +855,17 @@ func SetupSetString(cmdData *CmdData, cmd *cobra.Command) {
Also, can be defined with $WERF_SET_STRING_* (e.g. $WERF_SET_STRING_1=key1=val1, $WERF_SET_STRING_2=key2=val2)`)
}

func SetupValues(cmdData *CmdData, cmd *cobra.Command) {
func SetupValues(cmdData *CmdData, cmd *cobra.Command, projectConfigParsed bool) {
cmdData.Values = new([]string)
cmd.Flags().StringArrayVarP(cmdData.Values, "values", "", []string{}, `Specify helm values in a YAML file or a URL (can specify multiple).
Also, can be defined with $WERF_VALUES_* (e.g. $WERF_VALUES_1=.helm/values_1.yaml, $WERF_VALUES_2=.helm/values_2.yaml)`)

var usage string
if projectConfigParsed {
usage = `Specify helm values in a YAML file or a URL (can specify multiple). Also, can be defined with $WERF_VALUES_* (e.g. $WERF_VALUES_1=.helm/values_1.yaml, $WERF_VALUES_2=.helm/values_2.yaml)`
} else {
usage = `Specify helm values in a YAML file or a URL (can specify multiple). Also, can be defined with $WERF_VALUES_* (e.g. $WERF_VALUES_1=values_1.yaml, $WERF_VALUES_2=values_2.yaml)`
}

cmd.Flags().StringArrayVarP(cmdData.Values, "values", "", []string{}, usage)
}

func SetupSetFile(cmdData *CmdData, cmd *cobra.Command) {
Expand All @@ -843,10 +874,17 @@ func SetupSetFile(cmdData *CmdData, cmd *cobra.Command) {
Also, can be defined with $WERF_SET_FILE_* (e.g. $WERF_SET_FILE_1=key1=path1, $WERF_SET_FILE_2=key2=val2)`)
}

func SetupSecretValues(cmdData *CmdData, cmd *cobra.Command) {
func SetupSecretValues(cmdData *CmdData, cmd *cobra.Command, projectConfigParsed bool) {
cmdData.SecretValues = new([]string)
cmd.Flags().StringArrayVarP(cmdData.SecretValues, "secret-values", "", []string{}, `Specify helm secret values in a YAML file (can specify multiple).
Also, can be defined with $WERF_SECRET_VALUES_* (e.g. $WERF_SECRET_VALUES_ENV=.helm/secret_values_test.yaml, $WERF_SECRET_VALUES_DB=.helm/secret_values_db.yaml)`)

var usage string
if projectConfigParsed {
usage = `Specify helm secret values in a YAML file (can specify multiple). Also, can be defined with $WERF_SECRET_VALUES_* (e.g. $WERF_SECRET_VALUES_ENV=.helm/secret_values_test.yaml, $WERF_SECRET_VALUES_DB=.helm/secret_values_db.yaml)`
} else {
usage = `Specify helm secret values in a YAML file (can specify multiple). Also, can be defined with $WERF_SECRET_VALUES_* (e.g. $WERF_SECRET_VALUES_ENV=secret_values_test.yaml, $WERF_SECRET_VALUES_DB=secret_values_db.yaml)`
}

cmd.Flags().StringArrayVarP(cmdData.SecretValues, "secret-values", "", []string{}, usage)
}

func SetupIgnoreSecretKey(cmdData *CmdData, cmd *cobra.Command) {
Expand Down
2 changes: 1 addition & 1 deletion cmd/werf/compose/main.go
Expand Up @@ -202,7 +202,7 @@ func newCmd(ctx context.Context, composeCmdName string, options *newCmdOptions)

common.SetupDockerConfig(&commonCmdData, cmd, "Command needs granted permissions to read and pull images from the specified repo")
common.SetupInsecureRegistry(&commonCmdData, cmd)
common.SetupInsecureHelmDependencies(&commonCmdData, cmd)
common.SetupInsecureHelmDependencies(&commonCmdData, cmd, true)
common.SetupSkipTlsVerifyRegistry(&commonCmdData, cmd)

common.SetupLogOptions(&commonCmdData, cmd)
Expand Down
10 changes: 5 additions & 5 deletions cmd/werf/converge/converge.go
Expand Up @@ -152,7 +152,7 @@ werf converge --repo registry.mydomain.com/web --env production`,

common.SetupDockerConfig(&commonCmdData, cmd, "Command needs granted permissions to read, pull and push images into the specified repo, to pull base images")
common.SetupInsecureRegistry(&commonCmdData, cmd)
common.SetupInsecureHelmDependencies(&commonCmdData, cmd)
common.SetupInsecureHelmDependencies(&commonCmdData, cmd, true)
common.SetupSkipTlsVerifyRegistry(&commonCmdData, cmd)

common.SetupLogOptions(&commonCmdData, cmd)
Expand All @@ -168,17 +168,17 @@ werf converge --repo registry.mydomain.com/web --env production`,
common.SetupHooksStatusProgressPeriod(&commonCmdData, cmd)
common.SetupReleasesHistoryMax(&commonCmdData, cmd)

common.SetupRelease(&commonCmdData, cmd)
common.SetupNamespace(&commonCmdData, cmd)
common.SetupRelease(&commonCmdData, cmd, true)
common.SetupNamespace(&commonCmdData, cmd, true)
common.SetupAddAnnotations(&commonCmdData, cmd)
common.SetupAddLabels(&commonCmdData, cmd)

common.SetupSetDockerConfigJsonValue(&commonCmdData, cmd)
common.SetupSet(&commonCmdData, cmd)
common.SetupSetString(&commonCmdData, cmd)
common.SetupSetFile(&commonCmdData, cmd)
common.SetupValues(&commonCmdData, cmd)
common.SetupSecretValues(&commonCmdData, cmd)
common.SetupValues(&commonCmdData, cmd, true)
common.SetupSecretValues(&commonCmdData, cmd, true)
common.SetupIgnoreSecretKey(&commonCmdData, cmd)

commonCmdData.SetupDisableDefaultValues(cmd)
Expand Down
6 changes: 3 additions & 3 deletions cmd/werf/dismiss/dismiss.go
Expand Up @@ -99,8 +99,8 @@ func NewCmd(ctx context.Context) *cobra.Command {
common.SetupFinalRepo(&commonCmdData, cmd)
common.SetupSynchronization(&commonCmdData, cmd)

common.SetupRelease(&commonCmdData, cmd)
common.SetupNamespace(&commonCmdData, cmd)
common.SetupRelease(&commonCmdData, cmd, true)
common.SetupNamespace(&commonCmdData, cmd, true)

common.SetupUseDeployReport(&commonCmdData, cmd)
common.SetupDeployReportPath(&commonCmdData, cmd)
Expand All @@ -126,7 +126,7 @@ func NewCmd(ctx context.Context) *cobra.Command {
common.SetupDockerServerStoragePath(&commonCmdData, cmd)

common.SetupInsecureRegistry(&commonCmdData, cmd)
common.SetupInsecureHelmDependencies(&commonCmdData, cmd)
common.SetupInsecureHelmDependencies(&commonCmdData, cmd, true)
common.SetupSkipTlsVerifyRegistry(&commonCmdData, cmd)

commonCmdData.SetupPlatform(cmd)
Expand Down
2 changes: 1 addition & 1 deletion cmd/werf/export/export.go
Expand Up @@ -109,7 +109,7 @@ func NewExportCmd(ctx context.Context) *cobra.Command {

common.SetupDockerConfig(&commonCmdData, cmd, "Command needs granted permissions to read and pull images from the specified repo")
common.SetupInsecureRegistry(&commonCmdData, cmd)
common.SetupInsecureHelmDependencies(&commonCmdData, cmd)
common.SetupInsecureHelmDependencies(&commonCmdData, cmd, true)
common.SetupSkipTlsVerifyRegistry(&commonCmdData, cmd)

common.SetupLogOptions(&commonCmdData, cmd)
Expand Down
2 changes: 1 addition & 1 deletion cmd/werf/helm/get_autogenerated_values.go
Expand Up @@ -77,7 +77,7 @@ func NewGetAutogeneratedValuesCmd(ctx context.Context) *cobra.Command {
common.SetupUseCustomTag(&getAutogeneratedValuedCmdData, cmd)
common.SetupVirtualMerge(&getAutogeneratedValuedCmdData, cmd)

common.SetupNamespace(&getAutogeneratedValuedCmdData, cmd)
common.SetupNamespace(&getAutogeneratedValuedCmdData, cmd, true)

common.SetupDockerConfig(&getAutogeneratedValuedCmdData, cmd, "Command needs granted permissions to read and pull images from the specified repo")
common.SetupInsecureRegistry(&getAutogeneratedValuedCmdData, cmd)
Expand Down
2 changes: 1 addition & 1 deletion cmd/werf/helm/get_release.go
Expand Up @@ -39,7 +39,7 @@ func NewGetReleaseCmd(ctx context.Context) *cobra.Command {
common.SetupConfigTemplatesDir(&getReleaseCmdData, cmd)
common.SetupConfigPath(&getReleaseCmdData, cmd)
common.SetupGiterminismConfigPath(&getReleaseCmdData, cmd)
common.SetupNamespace(&getReleaseCmdData, cmd)
common.SetupNamespace(&getReleaseCmdData, cmd, true)
common.SetupEnvironment(&getReleaseCmdData, cmd)

common.SetupGiterminismOptions(&getReleaseCmdData, cmd)
Expand Down
2 changes: 1 addition & 1 deletion cmd/werf/helm/helm.go
Expand Up @@ -74,7 +74,7 @@ func NewCmd(ctx context.Context) (*cobra.Command, error) {
common.SetupHooksStatusProgressPeriod(&_commonCmdData, cmd)
common.SetupReleasesHistoryMax(&_commonCmdData, cmd)
common.SetupLogOptions(&_commonCmdData, cmd)
common.SetupInsecureHelmDependencies(&_commonCmdData, cmd)
common.SetupInsecureHelmDependencies(&_commonCmdData, cmd, false)
common.SetupDockerConfig(&_commonCmdData, cmd, "")

dependencyCmd := helm_v3.NewDependencyCmd(actionConfig, os.Stdout)
Expand Down
2 changes: 1 addition & 1 deletion cmd/werf/helm/migrate2to3.go
Expand Up @@ -88,7 +88,7 @@ func NewMigrate2To3Cmd(ctx context.Context) *cobra.Command {
common.SetupKubeConfigBase64(&migrate2To3CommonCmdData, cmd)
common.SetupKubeContext(&migrate2To3CommonCmdData, cmd)

common.SetupInsecureHelmDependencies(&migrate2To3CommonCmdData, cmd)
common.SetupInsecureHelmDependencies(&migrate2To3CommonCmdData, cmd, false)

common.SetupLogOptions(&migrate2To3CommonCmdData, cmd)

Expand Down
2 changes: 1 addition & 1 deletion cmd/werf/helm/werf_chart.go
Expand Up @@ -14,7 +14,7 @@ func SetupRenderRelatedWerfChartParams(cmd *cobra.Command, commonCmdData *common
common.SetupAddAnnotations(commonCmdData, cmd)
common.SetupAddLabels(commonCmdData, cmd)

common.SetupSecretValues(commonCmdData, cmd)
common.SetupSecretValues(commonCmdData, cmd, true)
common.SetupIgnoreSecretKey(commonCmdData, cmd)
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/werf/kube_run/kube_run.go
Expand Up @@ -156,7 +156,7 @@ func NewCmd(ctx context.Context) *cobra.Command {
common.SetupConfigPath(&commonCmdData, cmd)
common.SetupGiterminismConfigPath(&commonCmdData, cmd)
common.SetupEnvironment(&commonCmdData, cmd)
common.SetupNamespace(&commonCmdData, cmd)
common.SetupNamespace(&commonCmdData, cmd, true)
common.SetupAddAnnotations(&commonCmdData, cmd)
common.SetupAddLabels(&commonCmdData, cmd)

Expand Down
2 changes: 1 addition & 1 deletion cmd/werf/managed_images/add/add.go
Expand Up @@ -62,7 +62,7 @@ func NewCmd(ctx context.Context) *cobra.Command {

common.SetupDockerConfig(&commonCmdData, cmd, "Command needs granted permissions to read and write images to the specified repo")
common.SetupInsecureRegistry(&commonCmdData, cmd)
common.SetupInsecureHelmDependencies(&commonCmdData, cmd)
common.SetupInsecureHelmDependencies(&commonCmdData, cmd, true)
common.SetupSkipTlsVerifyRegistry(&commonCmdData, cmd)

common.SetupLogOptions(&commonCmdData, cmd)
Expand Down
2 changes: 1 addition & 1 deletion cmd/werf/managed_images/ls/ls.go
Expand Up @@ -58,7 +58,7 @@ func NewCmd(ctx context.Context) *cobra.Command {

common.SetupDockerConfig(&commonCmdData, cmd, "Command needs granted permissions to read images from the specified repo")
common.SetupInsecureRegistry(&commonCmdData, cmd)
common.SetupInsecureHelmDependencies(&commonCmdData, cmd)
common.SetupInsecureHelmDependencies(&commonCmdData, cmd, true)
common.SetupSkipTlsVerifyRegistry(&commonCmdData, cmd)

common.SetupLogOptions(&commonCmdData, cmd)
Expand Down
2 changes: 1 addition & 1 deletion cmd/werf/managed_images/rm/rm.go
Expand Up @@ -62,7 +62,7 @@ func NewCmd(ctx context.Context) *cobra.Command {

common.SetupDockerConfig(&commonCmdData, cmd, "Command needs granted permissions to read and write images to the specified repo")
common.SetupInsecureRegistry(&commonCmdData, cmd)
common.SetupInsecureHelmDependencies(&commonCmdData, cmd)
common.SetupInsecureHelmDependencies(&commonCmdData, cmd, true)
common.SetupSkipTlsVerifyRegistry(&commonCmdData, cmd)

common.SetupLogOptions(&commonCmdData, cmd)
Expand Down

0 comments on commit 9ce7b84

Please sign in to comment.