Skip to content

Commit 4d092fe

Browse files
committed
WIP: reduced cert-manifests values file
Signed-off-by: Todd Short <[email protected]>
1 parent e3b0e18 commit 4d092fe

File tree

3 files changed

+3
-14
lines changed

3 files changed

+3
-14
lines changed

helm/cert-manager.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,5 @@
44

55
# List of components to include
66
components:
7-
catalogd:
8-
webhook:
9-
annotations:
10-
cert-manager.io/inject-ca-from-secret: cert-manager/olmv1-ca
117
certManager:
128
enabled: true

helm/olmv1/templates/40-mutatingwebhookconfiguration-catalogd-mutating-webhook-configuration.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ metadata:
77
app.kubernetes.io/name: catalogd
88
{{- include "olmv1.labels" . | nindent 4 }}
99
annotations:
10-
{{- include "olmv1.catalogd.webhook.annotations" . | nindent 4 }}
10+
{{- if .Values.components.certManager.enabled }}
11+
cert-manager.io/inject-ca-from-secret: cert-manager/olmv1-ca
12+
{{- end }}
1113
{{- include "olmv1.annotations" . | nindent 4 }}
1214
webhooks:
1315
- admissionReviewVersions:

helm/olmv1/templates/_helpers.tpl

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,6 @@ Common annoations
4343
olm.operatorframework.io/feature-set: {{ .Values.featureSet -}}{{- if .Values.components.e2e.enabled -}}-e2e{{- end -}}
4444
{{- end }}
4545

46-
{{/*
47-
Annotations for Catalogd Webhooks
48-
*/}}
49-
{{- define "olmv1.catalogd.webhook.annotations" -}}
50-
{{- with .Values.components.catalogd.webhook.annotations }}
51-
{{- toYamlPretty . }}
52-
{{- end }}
53-
{{- end }}
54-
5546
{{/*
5647
Insertion of additional rules for RBAC
5748
*/}}

0 commit comments

Comments
 (0)