Kubernetes recommanded labels and custom labels#25
Kubernetes recommanded labels and custom labels#25pierluigilenoci merged 18 commits intooauth2-proxy:mainfrom
Conversation
Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com>
Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com>
Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com>
|
Thanks for the contribution! Appart from the failed test, this is a breaking change that requires chart uninstallation (or at least At least, we need to state the breaking change in the version and provide an upgrade procedure. |
|
@nlamirault could you please revisit your PR according to the suggestions? |
|
@nlamirault thanks but things are still missing. The version bump must be of the major version, a migration procedure must be included and explicitly written that it is a breaking changes. |
Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com>
Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com>
|
@pierluigilenoci do you have an example of a chart with a migration procedure ? |
|
@nlamirault maybe something like that is enough https://github.com/oauth2-proxy/manifests/tree/main/helm/oauth2-proxy#to-400 For me is enough to make it clear that it is a breaking change and write the migration instructions but I leave the last word to the other maintainers who are more experienced than me. |
Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com>
|
@pierluigilenoci @desaintmartin i make a section for next release. |
EtienneBarbier
left a comment
There was a problem hiding this comment.
I closed PR #43. Everything is already here and compatible with my use-case. Thank you @nlamirault ;)
|
@nlamirault from the point of view of the chart everything seems fine, perhaps the migration guide could be more exhaustive because it does not list the necessary steps to migrate without problems. |
|
@nlamirault the PR needs a chart bump. And maybe a squash. |
|
@nlamirault sorry to give you bad news but the build failed. |
Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com>
Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com>
|
@desaintmartin could you please take a look? |
|
Last note before merging: have you actually tested that |
|
@desaintmartin No. My homelab is dead actually :( |
|
I've just tested, and actually the orphaned Pod gets lost and is not recovered/deleted by the new Deployment. I suppose the only we is to have a downtime with a Deployment deletion WITH cascade... |
helm/oauth2-proxy/README.md
Outdated
| In order to upgrade, delete the Deployment before upgrading: | ||
|
|
||
| ```bash | ||
| kubectl delete deployment --cascade=false my-release-oauth2-proxy |
There was a problem hiding this comment.
cascade will not work, unfortunately...
There was a problem hiding this comment.
I find this : https://github.com/codecentric/helm-charts/blob/master/charts/keycloak/README.md#from-chart-versions--500. Could you perform another test with this script @desaintmartin ?
There was a problem hiding this comment.
This should work out of the box but becomes quite complex and error-prone compared to simply delete and have a few downtime.
@pierluigilenoci what do you think?
There was a problem hiding this comment.
Maybe I don't fully understand the problem, but it could be left as a backup option only for those who don't want to have downtime. I like to make everything automatic via script but this seems a bit risky to me.
There was a problem hiding this comment.
What I propose:
- document the
kubectl delete deploymentwithout cascade - as a fallback for user who don't want downtime: document this
There was a problem hiding this comment.
@desaintmartin it seems to me that now the documentation is ok.
Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com>
|
@nlamirault @pierluigilenoci should we tackle annotations as well in this pr? I've linked a pr for custom config annotations in case we should treat it separately |
@Allex1 it might also make sense to me but this PR is so close to closure that I wouldn't want to disturb it. 😛 |
kk, Opened #62 |
|
@desaintmartin if you give me your final approval I merge the PR. ❤️ |
|
Lgtm! |
|
DONE!!!! ❤️ 🚀 |
Support for :