New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Helm 3.0.3. --set ignored together with --reuse-values #7509
Comments
I'm hitting the same bug. I can see that the problem is around here;
if the original chart is installed with no overrides at all, helm stores overrides as Only option left for automation is; (not tested) NAMESPACE=dev
DEPLOY=myapp
PREVIOUS_VALUES=$(helm -n ${NAMESPACE} get values ${DEPLOY} -o=yaml)
OPT="--reuse-values"
if [ "${PREVIOUS_VALUES}" = "null" ]; then
OPT="--reset-values"
fi
helm upgrade -n ${NAMESPACE} ${DEPLOY} ${OPT} --set my.over.ridden.field=newvalue1 |
I'm not completely sure, but I think I was hitting this bug all the way back in helm 2.14. Once I switched my pipelines to fetching previous values explicitly, and then setting based on those without using the |
This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs. |
@github-actions please unmark as stale. |
This looks like a bug. It can be reproduced simply from scaffold chart install: $ helm3 create issue-7509
Creating issue-7509
$ helm3 install issue-7509 issue-7509/
NAME: issue-7509
LAST DEPLOYED: Mon Sep 21 09:22:44 2020
NAMESPACE: default
STATUS: deployed
REVISION: 1
NOTES:
1. Get the application URL by running these commands:
export POD_NAME=$(kubectl get pods --namespace default -l "app.kubernetes.io/name=issue-7509,app.kubernetes.io/instance=issue-7509" -o jsonpath="{.items[0].metadata.name}")
export CONTAINER_PORT=$(kubectl get pod --namespace default $POD_NAME -o jsonpath="{.spec.containers[0].ports[0].containerPort}")
echo "Visit http://127.0.0.1:8080 to use your application"
kubectl --namespace default port-forward $POD_NAME 8080:$CONTAINER_PORT
$ helm3 get values issue-7509
USER-SUPPLIED VALUES:
null |
This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs. |
it's quite stupid to auto-close an issue. and it's insulting for the people who put up effort to report bugs. |
This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs. |
Still watching @github-actions-kun, and still have my workarounds in place for this specific bug |
See #6899, same symptoms, supposedly fixed back then. |
This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs. |
Output of
helm version
:Output of
kubectl version
:Cloud Provider/Platform (AKS, GKE, Minikube etc.): reproduced on GKE and Minikube.
Problem
helm create test-chart
helm install test-chart test-chart/
helm upgrade test-chart test-chart/ --reuse-values --set replicaCount=2
helm get values test-chart
-> USER-SUPPLIED VALUES: null -> expected USER-SUPPLIED VALUES: replicaCount: 2Walkaround
helm upgrade test-chart test-chart/ --set replicaCount=2
helm upgrade test-chart test-chart/ --set replicaCount=1
helm upgrade test-chart test-chart/ --reuse-values --set replicaCount=2
. And now it works for all values in an expected wayPlease, give opportunity to use --set and --reuse-values together without walkarounds
Upd: It is possible to walkaround a problem, if we install chart with at least one --set option.
The text was updated successfully, but these errors were encountered: