Skip to content
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

chore: Add pods/resize subresource to mutating and validating webhooks #3778

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

ianstanton
Copy link

What this PR does / why we need it:
Add pod/resize subresource to mutating and validating webhooks.

Which issue(s) this PR fixes (optional, using fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when the PR gets merged):
Fixes #3771

Special notes for your reviewer:
@JaydipGabani Please let me know if there's anything else we need for this one

@ianstanton ianstanton requested a review from a team as a code owner January 14, 2025 02:32
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you also add the list of subresources for mutating-webhook-configuration as well?

 - pods/ephemeralcontainers
  - pods/exec
  - pods/log
  - pods/eviction
  - pods/portforward
  - pods/proxy
  - pods/attach
  - pods/binding
  - pods/resize
  - deployments/scale
  - replicasets/scale
  - statefulsets/scale
  - replicationcontrollers/scale
  - services/proxy
  - nodes/proxy
  - services/status

Copy link
Author

Choose a reason for hiding this comment

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

✔️ Updated the kubebuilder annotation in pkg/webhook/mutation.go with these values

Copy link
Contributor

Choose a reason for hiding this comment

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

changes in deploy dir are overwritten with each release, so please remove any changes in gatekeeper.yaml file.

Copy link
Author

Choose a reason for hiding this comment

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

👍 Removed these changes

Copy link
Contributor

Choose a reason for hiding this comment

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

Any changes in charts dir is overwritten in release, please remove any changes in this dir.

Copy link
Author

Choose a reason for hiding this comment

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

Got it! Looks like these changes are applied in the manifest_staging dir when we run make generate.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yip! that is fine. We want these changes to manifest_staging. You can find out more on contributing to helm chart and overall here - https://open-policy-agent.github.io/gatekeeper/website/docs/help#contributing-to-helm-chart. Thanks again for the PR!

@JaydipGabani
Copy link
Contributor

@ianstanton Thanks for the PR, few changes and we should be good.

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.

Add pod/resize sub resource to webhooks
2 participants