-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Support objectSelector on mutating webhook #2058
Support objectSelector on mutating webhook #2058
Conversation
Signed-off-by: Cian Gallagher <[email protected]>
Signed-off-by: Cian Gallagher <[email protected]>
Signed-off-by: Cian Gallagher <[email protected]>
Signed-off-by: Cian Gallagher <[email protected]>
Signed-off-by: Cian Gallagher <[email protected]>
Signed-off-by: Cian Gallagher <[email protected]>
Looks like the CI failures caused as a result of minikube kubernetes/minikube#18021 |
Signed-off-by: Cian Gallagher <[email protected]>
This is a great addition. But can we limit each PR to a specific goal only (e.g. moving the CI action change to another PR)? That way, it's easier to troubleshoot and revert if needed. |
Sure thing, I can move the CI change to a different PR. I just made the change to ensure the CI would pass. I'll do that now, which will need to be merged in first 👍 |
Signed-off-by: Cian Gallagher <[email protected]>
@yuchaoran2011 I have removed the change from this PR (hence why some actions are failing), and moved it to this PR. This new PR will need to be merged first, then this one rebased afterwards. |
Thanks @Cian911 I was just about to open another bug as the current CI is failing. @yuchaoran2011 @andreyvelich @vara-bonthu can we please merge this PR on a priority |
Signed-off-by: Cian Gallagher <[email protected]>
@yuchaoran2011 @vara-bonthu Now that my other PR has been merged with regards to the |
PR looks good to me. Could you confirm if your local tests are successful? |
Signed-off-by: Cian Gallagher <[email protected]>
Signed-off-by: Cian Gallagher <[email protected]>
Yes indeed, we are already using this in our clusters, see below: I've also just updated the chart version & docs again following the most recent merge. It would be great if any of you can review this again 🙇 cc: @vara-bonthu @yuchaoran2011 |
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: yuchaoran2011 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
* feat: add support for setting objectSelector on webhook Signed-off-by: Cian Gallagher <[email protected]> * feat: update objectSelector to match expressions Signed-off-by: Cian Gallagher <[email protected]> * chore: use out of the box label parser Signed-off-by: Cian Gallagher <[email protected]> * chore: update chart version Signed-off-by: Cian Gallagher <[email protected]> * chore: update app version Signed-off-by: Cian Gallagher <[email protected]> * fix: use parseSelector Signed-off-by: Cian Gallagher <[email protected]> * ci: update minikube action to latest release Signed-off-by: Cian Gallagher <[email protected]> * revert: undo ci changes. create seperate pr Signed-off-by: Cian Gallagher <[email protected]> * Trigger CI Signed-off-by: Cian Gallagher <[email protected]> * chore: update chart version & docs following previous merge Signed-off-by: Cian Gallagher <[email protected]> * docs: update docs Signed-off-by: Cian Gallagher <[email protected]> --------- Signed-off-by: Cian Gallagher <[email protected]>
* feat: add support for setting objectSelector on webhook Signed-off-by: Cian Gallagher <[email protected]> * feat: update objectSelector to match expressions Signed-off-by: Cian Gallagher <[email protected]> * chore: use out of the box label parser Signed-off-by: Cian Gallagher <[email protected]> * chore: update chart version Signed-off-by: Cian Gallagher <[email protected]> * chore: update app version Signed-off-by: Cian Gallagher <[email protected]> * fix: use parseSelector Signed-off-by: Cian Gallagher <[email protected]> * ci: update minikube action to latest release Signed-off-by: Cian Gallagher <[email protected]> * revert: undo ci changes. create seperate pr Signed-off-by: Cian Gallagher <[email protected]> * Trigger CI Signed-off-by: Cian Gallagher <[email protected]> * chore: update chart version & docs following previous merge Signed-off-by: Cian Gallagher <[email protected]> * docs: update docs Signed-off-by: Cian Gallagher <[email protected]> --------- Signed-off-by: Cian Gallagher <[email protected]>
* feat: add support for setting objectSelector on webhook Signed-off-by: Cian Gallagher <[email protected]> * feat: update objectSelector to match expressions Signed-off-by: Cian Gallagher <[email protected]> * chore: use out of the box label parser Signed-off-by: Cian Gallagher <[email protected]> * chore: update chart version Signed-off-by: Cian Gallagher <[email protected]> * chore: update app version Signed-off-by: Cian Gallagher <[email protected]> * fix: use parseSelector Signed-off-by: Cian Gallagher <[email protected]> * ci: update minikube action to latest release Signed-off-by: Cian Gallagher <[email protected]> * revert: undo ci changes. create seperate pr Signed-off-by: Cian Gallagher <[email protected]> * Trigger CI Signed-off-by: Cian Gallagher <[email protected]> * chore: update chart version & docs following previous merge Signed-off-by: Cian Gallagher <[email protected]> * docs: update docs Signed-off-by: Cian Gallagher <[email protected]> --------- Signed-off-by: Cian Gallagher <[email protected]>
🛑 Important:
Please open an issue to discuss significant work before you start. We appreciate your contributions and don't want your efforts to go to waste!
For guidelines on how to contribute, please review the CONTRIBUTING.md document.
Purpose of this PR
When the jobs are run for the
spark-operator
in the same namespace in which the operator resides, the operator will attempt to mutate itself.Proposed changes:
objectSelector
on theMutatingWebhookConfiguration
so as a user can specify what pods matching a given set of labels the operator can mutate. See also related issue requesting this.This PR also updates theThis has been moved to this PR.minikube
CI action to the latest release.Change Category
Indicate the type of change by marking the applicable boxes:
Rationale
Checklist
Before submitting your PR, please review the following:
Additional Notes