-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat(marketplace): also annotate nodes on upgrade to support shim upgrade #35
Conversation
…rade Signed-off-by: Vaughn Dice <[email protected]>
@@ -3,7 +3,7 @@ kind: Job | |||
metadata: | |||
name: "{{ .Release.Name }}-kwasm-annotate-nodes" | |||
annotations: | |||
"helm.sh/hook": post-install | |||
"helm.sh/hook": post-install,post-upgrade |
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.
It seems fine to re-labeling nodes for both the post-install and post-upgrade scenarios. Have you tested this? I am asking because I am concerend about if we need to have buffer time of labeling kwasm-node from false to true.
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.
I have tested locally, though only on KinD. Maybe worth checking on AKS?
Oh, I could also add test coverage for this in our helm chart smoke test (or create a new workflow with scenarios like this)...
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.
I like the idea of adding more tests
e27817e
to
f3178cb
Compare
Signed-off-by: Vaughn Dice <[email protected]>
f3178cb
to
9d54816
Compare
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.
LGTM
We could also try to make this logic smarter, for instance if there was a way to know if we are executing via the 'helm-upgrade' hook, we could inspect which nodes are already labeled with
kwasm.sh/kwasm-node=true
and do the re-labeling just on this subset, rather than re-labeling all nodes. Thoughts?