-
Notifications
You must be signed in to change notification settings - Fork 45
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: Add priority to dex jobs #1439
feat: Add priority to dex jobs #1439
Conversation
e2660b5
to
3506e46
Compare
upgrade test keeps failing :( I wonder if it's because the new values are not getting used in the upgrade? (but I feel like this would have failed in more tests whenever we added new value fields 🤔 ) When I do
|
fc7abe8
to
a45797d
Compare
It looks like ct is using I tested this with a chart hosted from my GH.
|
fed5d14
to
d1c83bb
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! though still unsure of the consequences of rerunning this job
@palexster can you verify that it would be fine to rerun the dex job to regenerate certs? When I tested on the daily cluster, I didn't notice any issues (but maybe I wasn't looking at the right thing :) ) |
I think we are safe. Those jobs are only re-bootstrapping a CA and new certificates, so every new execution would just bootstrap them again. Btw, I don't see the purpose of re-bootstrapping a new CA at every update (the lowest default value is 10y of lifespan). We should probably consider migrating to cert-manager, managing them properly, and getting rid of those jobs, as suggested by @mhrabovcin. |
@palexster Can you (or @mhrabovcin) create a ticket in the backlog so we don't lose track of this improvement please? Thank you! |
* feat: Add priorityclass and ttl to dex jobs * feat: Add pre-upgrade hook to delete jobs * fix: Add trailing line * fix: Remove ttl, select dex 2.11.1 jobs to delete
What type of PR is this?
feat
What this PR does/ why we need it:
Set priority class on dex jobs. However, for this upgrade, we will still hit this immutable error since the job already exists. So, I've added a pre-upgrade hook here to clean up the Jobs prior to upgrading. This will only target jobs deployed in chart version 1.11.1 (released in DKP 2.5), so will only recreate jobs during upgrade from DKP 2.5 to 2.6 (and not within 2.6). We can remove this hook in following releases.
The certs jobs will re-run on this upgrade but from my testing I don't see any effects, but would like some confirmation from our sso stack sme's.
Which issue(s) this PR fixes:
https://d2iq.atlassian.net/browse/D2IQ-97813
Special notes for your reviewer:
Does this PR introduce a user-facing change?:
Checklist