Skip to content

Conversation

@jtriley
Copy link
Contributor

@jtriley jtriley commented Nov 14, 2025

This patch uses the cert-manager operator to automatically generate the self-signed CA, cert, and key and mount it within the webhook deployment. It also uses cert-manager to inject the CA cert into the mutatatingwebhookconfiguration.

In theory this should allow us to fully automate the webhook deployment via argocd. Currently testing this on ocp-test.

@jtriley jtriley marked this pull request as ready for review November 16, 2025 18:23
@jtriley
Copy link
Contributor Author

jtriley commented Nov 16, 2025

This is active on ocp-test and, as far as I can tell, it's still functioning as intended. I added myself to the cs210 group and launched a notebook and the notebook pod got assigned the class label.

Copy link
Collaborator

@IsaiahStapleton IsaiahStapleton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, tested and working

@jtriley jtriley force-pushed the assign-class-label-tls branch 2 times, most recently from f90e1df to 8637510 Compare November 19, 2025 17:09
@jtriley
Copy link
Contributor Author

jtriley commented Nov 19, 2025

@IsaiahStapleton I just updated the README to remove the instructions about generating certificates given that this will fix that issue. Mind taking another look? Thanks!

This patch uses the cert-manager operator to automatically generate the
self-signed CA, cert, and key and mount it within the webhook
deployment. It also uses cert-manager to inject the CA cert into the
mutatatingwebhookconfiguration.
@jtriley jtriley force-pushed the assign-class-label-tls branch from 8637510 to 03f0cda Compare November 19, 2025 17:11
@jtriley jtriley requested a review from larsks November 19, 2025 17:17
@IsaiahStapleton
Copy link
Collaborator

@jtriley Update to the README looks good to me.

@jtriley jtriley merged commit 90b7397 into main Nov 19, 2025
2 checks passed
@jtriley jtriley deleted the assign-class-label-tls branch November 19, 2025 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants