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

feat: add an option to provide nameselector and scope in operator webhook #762

Merged
merged 10 commits into from
Mar 7, 2024

Conversation

ypoplavs
Copy link
Contributor

@ypoplavs ypoplavs commented Mar 7, 2024

Pull request description

As per user's request this PR enabled adding namespaceSelector to limit which requests are intercepted.

Checklist (choose whats happened)

  • breaking change! (describe)
  • tested locally
  • tested on cluster
  • added new dependencies
  • updated the docs
  • added a test

Breaking changes

Changes

Fixes

@ypoplavs ypoplavs requested review from exu, nicufk and vsukhin as code owners March 7, 2024 09:59
@ypoplavs ypoplavs requested a review from dejanzele March 7, 2024 10:03
@@ -40,5 +44,8 @@ webhooks:
- UPDATE
resources:
- testtriggers
{{- if .Values.webhook.scope }}
scope: {{ .Values.webhook.scope }}
Copy link
Contributor

Choose a reason for hiding this comment

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

scope can be hardcoded to Namespaced as all our resources are namespace-scoped

## Limit which requests for namespaced resources are intercepted, by specifying a namespaceSelector.
namespaceSelector: []
## Scope specifies a scope to match. Valid values are "Cluster", "Namespaced", and "*". Default is "*".
scope: ""
Copy link
Contributor

Choose a reason for hiding this comment

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

same as above

@ypoplavs ypoplavs merged commit fe55d28 into develop Mar 7, 2024
1 check failed
@ypoplavs ypoplavs deleted the feat/760-limit-ValidatingWebhookConfiguration branch March 7, 2024 17:33
ypoplavs added a commit that referenced this pull request Mar 11, 2024
…hook (#762)

* add an option to provide nameselector and scope in operator webhook
ypoplavs added a commit that referenced this pull request Mar 11, 2024
…hook (#762)

* add an option to provide nameselector and scope in operator webhook
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.

3 participants