Closed jamezpolley closed 4 years ago
When I have no helm releases deployed and I run skaffold I don't get this error. So, something else is probably going on.
Error: unknown flag: --purge
This looks suspicious to me and is not something I see.
@jamezpolley what version of helm do you have?
3.1.2. updated context with versions of skaffold etc as well
Starting deploy...
DEBU[0000] Executing template &{envTemplate 0xc00060fc00 0xc000053a40 } with environment ......
DEBU[0000] Running command: [helm --kube-context minikube get yinyo]
INFO[0000] Building helm dependencies...
DEBU[0000] Running command: [helm --kube-context minikube dep build deployments/helm/yinyo]
DEBU[0000] EnvVarMap: map[string]string{"DIGEST":"openaustralia/yinyo-server:ddc5f408fde6d5f3f38c851599ecda9b3372c1caec5619da2a0ec2c8ea89852a", "DIGEST2":"openaustralia/yinyo-scraper:50f5f2f250b5ccb916ee8efa73e94fb99e4586ba79cf69abab99280c703b5c84", "DIGEST$ALGO":"openaustralia/yinyo-server", "DIGEST_ALGO2":"openaustralia/yinyo-scraper", "DIGEST_HEX":"ddc5f408fde6d5f3f38c851599ecda9b3372c1caec5619da2a0ec2c8ea89852a", "DIGEST_HEX2":"50f5f2f250b5ccb916ee8efa73e94fb99e4586ba79cf69abab99280c703b5c84", "IMAGE_NAME"$"openaustralia/yinyo-server", "IMAGE_NAME2":"openaustralia/yinyo-scraper"}
DEBU[0000] Running command: [helm --kube-context minikube upgrade yinyo deployments/helm/yinyo -f deployments/helm/yinyo-dev-values.yaml --set image=openaustralia/yinyo-server:ddc5f408fde6d5f3f38c851599ecda9b3372c1caec5619da2a0ec2c8ea89852a --set runImage=o$enaustralia/yinyo-scraper:50f5f2f250b5ccb916ee8efa73e94fb99e4586ba79cf69abab99280c703b5c84]
Error: UPGRADE FAILED: "yinyo" has no deployed releases
DEBU[0000] Running command: [helm --kube-context minikube get yinyo]
INFO[0000] error decoding parsed yaml: yaml: line 3: mapping values are not allowed in this context
DEBU[0000] Running command: [helm --kube-context minikube get yinyo]
I can't run that command:
james@bully:~/src/oaf/yinyo$ helm --kube-context minikube get yinyo
This command consists of multiple subcommands which can be used to
get extended information about the release, including:
- The values used to generate the release
- The generated manifest file
- The notes provided by the chart of the release
- The hooks associated with the release
Usage:
helm get [command]
Available Commands:
all download all information for a named release
helm --kube-context minikube get all yinyo
works for me.
I was able to use:
james@bully:~/src/oaf/yinyo$ helm --kube-context minikube install yinyo deployments/helm/yinyo -f deployments/helm/yinyo-dev-values.yaml --set image=openaustralia/yinyo-server:ddc5f408fde6d5f3f38c851599ecda9b3372c1caec5619da2a0ec2c8ea89852a --set runImage=o$enaustralia/yinyo-scraper:50f5f2f250b5ccb916ee8efa73e94fb99e4586ba79cf69abab99280c703b5c84
to install yinyo the first time, and now make skaffold
is able to upgrade yinyo. However, this means that minion now has the same symptoms:
DEBU[0011] Running command: [helm --kube-context minikube upgrade minio --version ~5.0.17 stable/minio -f deployments/helm/minio-dev-values.yaml]
Error: UPGRADE FAILED: "minio" has no deployed releases
DEBU[0012] Running command: [helm --kube-context minikube get minio]
INFO[0012] error decoding parsed yaml: yaml: line 3: mapping values are not allowed in this context
v1.0.0
Ugh. I'd updated skaffold, but my $PATH pointed at a different binary which was an older version... Clearing that out of the way means that it's now working
I'm not sure if it's worth taking any action here. As soon as I'd seen the error message and realised that skaffold was issuing commands that helm didn't recognise it was clear that there was a version mismatch. The install instructions do result in a working version of skaffold being installed, unless the user has already got an old version installed in an unusual place.
@jamezpolley okay. In that case I think it's fair to close this issue.
Describe the bug When running
make skaffold
for the first time, I'm getting the error:Error: UPGRADE FAILED: "yinyo" has no deployed releases
To Reproduce Steps to reproduce the behavior:make skaffold
UPGRADE FAILED
Expected behavior If there's no existing deployed release, something else should happen instead of an upgrade
Screenshots or logs
Additional context