WIP templates succesfully

This commit is contained in:
Eric Ace 2025-07-23 18:01:22 -04:00
parent e3689a59fe
commit a6131625cf
3 changed files with 13 additions and 0 deletions

View File

@ -127,6 +127,15 @@ spec:
- --managed-record-types={{ . }}
{{- end }}
- --provider={{ $providerName }}
{{- if .Values.provider.webhook.readTimeout }}
- --webhook-provider-read-timeout={{ .Values.provider.webhook.readTimeout }}
{{- end }}
{{- if .Values.provider.webhook.writeTimeout }}
- --webhook-provider-write-timeout={{ .Values.provider.webhook.writeTimeout }}
{{- end }}
{{- if .Values.provider.webhook.url }}
- --webhook-provider-url={{ .Values.provider.webhook.url }}
{{- end }}
{{- if kindIs "map" .Values.extraArgs }}
{{- range $key, $value := .Values.extraArgs }}
{{- if not (kindIs "invalid" $value) }}

View File

@ -27,6 +27,7 @@ spec:
targetPort: http
protocol: TCP
{{- if eq $providerName "webhook" }}
{{- if .Values.provider.webhook.sidecar }}
{{- with .Values.provider.webhook.sidecar.service }}
- name: http-webhook
port: {{ .port }}
@ -34,3 +35,4 @@ spec:
protocol: TCP
{{- end }}
{{- end }}
{{- end }}

View File

@ -50,6 +50,7 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if eq $providerName "webhook" }}
{{- if .Values.provider.webhook.sidecar }}
{{- with .Values.provider.webhook.sidecar.serviceMonitor }}
- port: http-webhook
path: /metrics
@ -79,6 +80,7 @@ spec:
{{- end }}
{{- end }}
{{- end }}
{{- end }}
{{- with .Values.serviceMonitor.targetLabels }}
targetLabels:
{{- toYaml . | nindent 4 }}