Skip to content

Commit

Permalink
fix: panic in dismiss command, helm regsitry client initialization fa…
Browse files Browse the repository at this point in the history
…ilure

Added missing --insecure-helm-dependencies flag into werf-dismiss command.
  • Loading branch information
distorhead committed Sep 23, 2021
1 parent c6bed33 commit 6a2e159
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 2 deletions.
4 changes: 4 additions & 0 deletions cmd/werf/dismiss/dismiss.go
Expand Up @@ -113,6 +113,10 @@ Read more info about Helm Release name, Kubernetes Namespace and how to change i
common.SetupAllowedLocalCacheVolumeUsageMargin(&commonCmdData, cmd)
common.SetupDockerServerStoragePath(&commonCmdData, cmd)

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

common.SetupPlatform(&commonCmdData, cmd)

cmd.Flags().BoolVarP(&cmdData.WithNamespace, "with-namespace", "", common.GetBoolEnvironmentDefaultFalse("WERF_WITH_NAMESPACE"), "Delete Kubernetes Namespace after purging Helm Release (default $WERF_WITH_NAMESPACE)")
Expand Down
2 changes: 2 additions & 0 deletions cmd/werf/helm/migrate2to3.go
Expand Up @@ -87,6 +87,8 @@ func NewMigrate2To3Cmd() *cobra.Command {
common.SetupKubeConfigBase64(&migrate2To3CommonCmdData, cmd)
common.SetupKubeContext(&migrate2To3CommonCmdData, cmd)

common.SetupInsecureHelmDependencies(&migrate2To3CommonCmdData, cmd)

common.SetupLogOptions(&migrate2To3CommonCmdData, cmd)

cmd.Flags().StringVarP(&migrate2ToCmdData.Release, "release", "", os.Getenv("WERF_RELEASE"), "Existing helm 2 release name which should be migrated to helm 3 (default $WERF_RELEASE). Option also sets target name for a new helm 3 release, use --target-release option (or $WERF_TARGET_RELEASE) to specify a different helm 3 release name.")
Expand Down
3 changes: 3 additions & 0 deletions docs/documentation/_includes/reference/cli/werf_dismiss.md
Expand Up @@ -122,6 +122,9 @@ werf dismiss [options]
--hooks-status-progress-period=5
Hooks status progress period in seconds. Set 0 to stop showing hooks status progress.
Defaults to $WERF_HOOKS_STATUS_PROGRESS_PERIOD_SECONDS or status progress period value
--insecure-helm-dependencies=false
Allow insecure oci registries to be used in the .helm/Chart.yaml dependencies
configuration (default $WERF_INSECURE_HELM_DEPENDENCIES)
--insecure-registry=false
Use plain HTTP requests when accessing a registry (default $WERF_INSECURE_REGISTRY)
--kube-config=''
Expand Down
Expand Up @@ -23,6 +23,9 @@ werf helm migrate2to3 [options]
$WERF_HELM2_RELEASE_STORAGE_TYPE, or $WERF_HELM_RELEASE_STORAGE_TYPE, or "configmap")
--home-dir=''
Use specified dir to store werf cache files and dirs (default $WERF_HOME or ~/.werf)
--insecure-helm-dependencies=false
Allow insecure oci registries to be used in the .helm/Chart.yaml dependencies
configuration (default $WERF_INSECURE_HELM_DEPENDENCIES)
--release=''
Existing helm 2 release name which should be migrated to helm 3 (default
$WERF_RELEASE). Option also sets target name for a new helm 3 release, use
Expand Down
Expand Up @@ -5,7 +5,7 @@
{% endif %}

This command inspects a chart (directory, file, or URL) and displays all its content
(values.yaml, Chart.yaml, README)
(values.yaml, Charts.yaml, README)


{{ header }} Syntax
Expand Down
Expand Up @@ -5,7 +5,7 @@
{% endif %}

This command inspects a chart (directory, file, or URL) and displays the contents
of the Chart.yaml file
of the Charts.yaml file


{{ header }} Syntax
Expand Down

0 comments on commit 6a2e159

Please sign in to comment.