skaffold: helm deploy failed: matching build results to chart values: no build present for

I’m trying to run the helm chart example, but seems the skaffold doesn’t install the helm chart, and delete it directly.

INFO[0000] Skaffold &{Version:v0.24.0 ConfigVersion:skaffold/v1beta6 GitVersion: GitCommit:6a829c4b29e3a102b0b14c4584cd174f780402e9 GitTreeState:clean BuildDate:2019-03-01T19:38:41Z GoVersion:go1.10.8 Compiler:gc Platform:darwin/amd64}
WARN[0000] config version (skaffold/v1beta4) out of date: upgrading to latest (skaffold/v1beta6)
DEBU[0000] Defaulting build type to local build
INFO[0000] no config entry found for kube-context KUBE-CONTEXT
INFO[0000] Using kubectl context: KUBE-CONTEXT
INFO[0000] no config entry found for kube-context KUBE-CONTEXT
DEBU[0000] Using builder: local
DEBU[0000] setting Docker user agent to skaffold-v0.24.0
INFO[0000] no config entry found for kube-context KUBE-CONTEXT
DEBU[0000] push value not present, defaulting to true because localCluster is false
Starting build...
Build complete in 780.733µs
Starting test...
Test complete in 13.796µs
Starting deploy...
DEBU[0000] Executing template &{envTemplate 0xc4202bc900 0xc4200396c0  } with environment map[MY_ENV]
DEBU[0000] Running command: [helm --kube-context KUBE-CONTEXT get skaffold-helm]
Error: release: "skaffold-helm" not found
Helm release skaffold-helm not installed. Installing...
DEBU[0002] Executing template &{envTemplate 0xc4202bc300 0xc4202d05c0  } with environment map[MY_ENV]
Cleaning up...
DEBU[0002] Executing template &{envTemplate 0xc42057a100 0xc420039980  } with environment map[MY_ENV]
DEBU[0002] Running command: [helm --kube-context KUBE-CONTEXT delete skaffold-helm --purge]
Error: release: "skaffold-helm" not found
DEBU[0003] deleting release skaffold-helm: exit status 1
Cleanup complete in 1.882025206s
FATA[0003] exiting dev mode because first run failed: deploy failed: deploying skaffold-helm: matching build results to chart values: no build present for gcr.io/k8s-skaffold/skaffold-helm

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 1
  • Comments: 19 (8 by maintainers)

Most upvoted comments

Please reopen this issue, I’m experiencing this issue with the newest bleeding-edge release.

With a fresh kubernetes environment and Skaffold never being executed before, this fails when running dev because of the “release not found” error. For some reason Skaffold wants to delete a non-existing release and fails because it does not exist, during initial cleanup phase. ~Mentioned workarounds do not work for me~ - the do work but only if --force=false is also provided.

eddit:// I’m on skaffold 1.7.0 and helm v3.1.2

@petr-buchyn I am experiencing this issue as well. Setting my values with the setValueTemplates property rather than the values property seemed to serve as a good temporary workaround for me.

Came across the same issue, tested it on v0.28 - v.033 This issue came up whenever i specified a namespace value inside of deploy.helm.releases[].values.

Should be fixed in #2105. We use to enforce Build in deploy flow. Somehow if the build result did not have the tag for the artifact in images, we would end up seeing this error. I will verify this again on my branch to make sure this is fixed!