Skip to content

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

Open
ndegory wants to merge 1 commit intoanchore:mainfrom
ndegory:webhook-annotations
Open

[anchore-admission-controller] annotations for the validating webhook configuration#254
ndegory wants to merge 1 commit intoanchore:mainfrom
ndegory:webhook-annotations

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.

Signed-off-by: Nicolas Degory <nicolas.degory@gmail.com>
@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.

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