Skip to content

Commit

Permalink
🐛 fix: (helm/v1alpha1): move end block to the correct place
Browse files Browse the repository at this point in the history
  • Loading branch information
monteiro-renato committed Dec 10, 2024
1 parent 423d56b commit ac4913b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ metadata:
namespace: {{ "{{ .Release.Namespace }}" }}
spec:
selfSigned: {}
{{` + "`" + `{{- end }}` + "`" + `}}
{{ "{{- if .Values.webhook.enable }}" }}
---
# Certificate for the webhook
Expand All @@ -77,7 +78,7 @@ spec:
name: selfsigned-issuer
secretName: webhook-server-cert
{{` + "`" + `{{- end }}` + "`" + `}}
{{ "{{- if and .Values.metrics.enable .Values.certmanager.enable }}" }}
{{ "{{- if and .Values.certmanager.enable .Values.metrics.enable }}" }}
---
# Certificate for the metrics
apiVersion: cert-manager.io/v1
Expand All @@ -101,5 +102,4 @@ spec:
name: selfsigned-issuer
secretName: metrics-server-cert
{{` + "`" + `{{- end }}` + "`" + `}}
{{` + "`" + `{{- end }}` + "`" + `}}
`
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ metadata:
namespace: {{ .Release.Namespace }}
spec:
selfSigned: {}
{{- end }}
{{- if .Values.webhook.enable }}
---
# Certificate for the webhook
Expand All @@ -33,7 +34,7 @@ spec:
name: selfsigned-issuer
secretName: webhook-server-cert
{{- end }}
{{- if and .Values.metrics.enable .Values.certmanager.enable }}
{{- if and .Values.certmanager.enable .Values.metrics.enable }}
---
# Certificate for the metrics
apiVersion: cert-manager.io/v1
Expand All @@ -57,4 +58,3 @@ spec:
name: selfsigned-issuer
secretName: metrics-server-cert
{{- end }}
{{- end }}

0 comments on commit ac4913b

Please sign in to comment.