Skip to content

Instantly share code, notes, and snippets.

@dgozalo
Created May 14, 2019 11:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dgozalo/483b025744c7510ebe23a675415c2ba1 to your computer and use it in GitHub Desktop.
Save dgozalo/483b025744c7510ebe23a675415c2ba1 to your computer and use it in GitHub Desktop.
Vault panic
getting the log for build dg-bee/environment-marescratch-dev/master #5 promotion stage from build pack and container build-step-build-helm-apply
Modified file /workspace/source/env/Chart.yaml to set the chart to version 5
WARNING: No $CHART_REPOSITORY defined so using the default value of: http://jenkins-x-chartmuseum:8080
Adding missing Helm repo: chartmuseum.jenkins-x.io http://chartmuseum.jenkins-x.io
Read credentials for http://chartmuseum.jenkins-x.io from vault helm/repos
Successfully added Helm repository chartmuseum.jenkins-x.io.
Adding missing Helm repo: jenkins-x-chartmuseum http://jenkins-x-chartmuseum:8080
Read credentials for http://jenkins-x-chartmuseum:8080 from vault helm/repos
Successfully added Helm repository jenkins-x-chartmuseum.
WARNING: No $CHART_REPOSITORY defined so using the default value of: http://jenkins-x-chartmuseum:8080
No --namespace option specified or $DEPLOY_NAMESPACE environment variable available so defaulting to using namespace jx
Applying helm chart at . as release name jenkins-x to namespace jx
Fetching secrets from vault into directory "."
panic: interface conversion: interface {} is nil, not []interface {}
goroutine 1 [running]:
github.com/jenkins-x/jx/pkg/vault.(*client).List(0xc00000df60, 0x3f3e9a4, 0x7, 0x4705940, 0xc00000df60, 0x0, 0x0, 0x101)
/workspace/source/pkg/vault/vault_client.go:140 +0x35f
github.com/jenkins-x/jx/pkg/jx/cmd.(*StepHelmApplyOptions).fetchSecretFilesFromVault(0xc0004f9650, 0x3f383b5, 0x1, 0x46f1400, 0x8383798, 0xc0009ce5c0, 0x0, 0x1, 0x0, 0x0)
/workspace/source/pkg/jx/cmd/step_helm_apply.go:284 +0x171
github.com/jenkins-x/jx/pkg/jx/cmd.(*StepHelmApplyOptions).Run(0xc0004f9650, 0x0, 0x0)
/workspace/source/pkg/jx/cmd/step_helm_apply.go:176 +0x8ac
github.com/jenkins-x/jx/pkg/jx/cmd.NewCmdStepHelmApply.func1(0xc000684500, 0x8383798, 0x0, 0x0)
/workspace/source/pkg/jx/cmd/step_helm_apply.go:68 +0x6f
github.com/spf13/cobra.(*Command).execute(0xc000684500, 0x8383798, 0x0, 0x0, 0xc000684500, 0x8383798)
/workspace/go/pkg/mod/github.com/spf13/cobra@v0.0.3/command.go:766 +0x2cc
github.com/spf13/cobra.(*Command).ExecuteC(0xc0003f3180, 0xc00091e280, 0xc0004aa500, 0xc000930a00)
/workspace/go/pkg/mod/github.com/spf13/cobra@v0.0.3/command.go:852 +0x2fd
github.com/spf13/cobra.(*Command).Execute(0xc0003f3180, 0xc0001532c0, 0x46d4380)
/workspace/go/pkg/mod/github.com/spf13/cobra@v0.0.3/command.go:800 +0x2b
github.com/jenkins-x/jx/cmd/jx/app.Run(0xc0007e7f88, 0xc00009a058)
/workspace/source/cmd/jx/app/jx.go:16 +0xed
main.main()
/workspace/source/cmd/jx/jx.go:11 +0x22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment