-
Notifications
You must be signed in to change notification settings - Fork 137
Add a MutatingAdmissionWebook + Defaulting/Validation for MachineDeployment #362
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
Conversation
50b614b to
4b7aef7
Compare
This reverts commit 4b7aef7.
25a9c76 to
3d86147
Compare
3d86147 to
2a3e150
Compare
| port: 8085 | ||
| periodSeconds: 5 | ||
| --- | ||
| apiVersion: apps/v1beta2 |
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.
Until I put this into a dedicated Deployment, the e2e tests always had some failures because of a connection reset when the APIServer tried to call the Webhook
|
@mrIncompetent This passes tests now, PTAL :) |
8a846ff to
b569ac6
Compare
|
Whats the advantage of using 2 separate docker images? |
So one image that contains two binaries? Or the hyperkube way of one binary that switches functionality based off of arg #1? |
One image containing 2 binaries |
Done in b981212 |
|
/approve |
|
/lgtm |
|
@alvaroaleman: you cannot LGTM your own PR. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alvaroaleman, mrIncompetent 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 |
What this PR does / why we need it:
Add aa MutatingAdmissionWebook + Defaulting/Validation for MachineDeployment
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)format, will close the issue(s) when PR gets merged):Fixes #
Special notes for your reviewer:
MachineDeployment.Spec.Strategyresults in an invalid json patch, because its an optional struct field that is not a pointer. This can only be fixed by making it a pointer. Longer explanation here: Make MachineDeployment.Spec.Strategy a pointer kubernetes-sigs/cluster-api#551xref: #227