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

[anchore-admission-controller] annotations for the validating webhook configuration #254

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ndegory
Copy link
Contributor

@ndegory ndegory commented Mar 21, 2023

Add configurable annotations for the validating webhook configuration.
This can be used for instance to tell cert-manager to inject a CA cert instead of passing it in the values file.

@ndegory ndegory requested a review from a team as a code owner March 21, 2023 17:43
@zhill
Copy link
Member

zhill commented Nov 1, 2024

@ndegory I'm not sure how this slipped through the cracks, so apologies for the huge delay in review. If you update your base branch I think we can review and get it merged fairly quickly as it seems pretty straightforward.

@@ -4,6 +4,9 @@ kind: ValidatingWebhookConfiguration
metadata:
name: {{ template "anchore-admission-controller.name" . }}-admission.anchore.io
labels: {{- include "anchore-admission-controller.labels" . | nindent 4 }}
{{- with .Values.apiService.webhook.annotations }}
Copy link
Member

Choose a reason for hiding this comment

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

It looks like this needs to be '.Values.apiService.annotations' based on the annotation location in the values.yaml and that the 'webhook' level is for the webhook config rather than the api service. Can you verify if that is what's expected?

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.

2 participants