-
Notifications
You must be signed in to change notification settings - Fork 803
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 upgrade error "... with the name ... not found" and how to handle it #620
Conversation
Interesting! Fix seems fine to me. Feel free to remove the WIP tag when you feel it's ready. I wonder how this didn't show up before. What helm & kubernetes versions are you running with? |
@minrk I'm very confused about all the issues that pops up. I'm thinking this can become an issue under certain circumstances, but I don't know which... So I sat out to reset and start over in some way. While cleaning in my cluster I found out that Helm considered multiple release numbers to be deployed. I don't know if that is reasonable (perhaps due to a rolling upgrade that got stuck?). Anyhow, I think that might have caused issues, so now I'm cleaning it all up. kubectl get configmap --namespace kube-system --selector STATUS=FAILED
kubectl get configmap --namespace kube-system --selector STATUS=PENDING_UPGRADE
kubectl get configmap --namespace kube-system --selector STATUS=SUPERSEDED
kubectl get configmap --namespace kube-system --selector STATUS=DEPLOYED
kubectl get configmap --namespace kube-system --selector STATUS=DELETED UPDATE 1 This resolved my issues... Hmmm... |
Great! |
- kind: ServiceAccount | ||
name: autohttps | ||
namespace: {{ .Release.Namespace }} | ||
- kind: ServiceAccount |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Regarding these indentation changes: there seem to be two standards: one where -
is aligned with the parent element and another where -
is indented like a dict. The latter seems more common and more readable (it's easier to see the levels this way), but this is converting to the former. Is there a reason to dedent this here (e.g. motivated by a helm linter)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#622 - The kubernetes/chart linting ignores the difference, allowing both. The repositories I've looked at have been mixing both. I've seen situations where both indentation variants have been the most readable. I'm happy to decide on any variant and go with it.
parent1:
- key1: value1
- key2: value2
parent2:
- key1: value1
- key2: value2
I've never seen really ugly examples of the first kind of indentation, but some due to the second kind of indentation. But that is often not an issue.
Example of nested situation causing a big challenge no matter what kind of indentation scheme used, but I figure it would be easier to use the former kind as the key-names would always start two spaces in.
zero-to-jupyterhub-k8s/jupyterhub/values.yaml
Lines 44 to 49 in c826f93
networkPolicy: | |
enabled: false | |
egress: | |
- to: | |
- ipBlock: | |
cidr: 0.0.0.0/0 |
I'm setting up some linting in #624 - we can configure it to however we please, I'm looking a directive to follow!
Thanks for the tip but in our case 2.8.2 has solved the problem automatically. This is what we did:
Once the rollback was finished all the previous DEPLOYED revisions were marked as SUPERSEEDED so no manual intervention was required. |
Update
This PR was supposed to fix #619, but became documentation on how to handle the errors encountered on helm upgrades. These are supposedly fixed in Helm 2.8.2 assuming a clean slate of helm release revisions.
Symptoms
You attempt to make a helm upgrade, but something like this hits you...
Diagnosis
Cure
Related
Helm 2.7 introduced the
--history-max
feature flag tohelm init
- this way you can limit helms memory of release revisions.Actual PR content
This ended up being quite irrelevant I think...
Very unimportant stuff also in PR