Skip to content

Commit 820372e

Browse files
authored
Merge pull request #4419 from monteiro-renato/patch-2
🐛 fix: (helm/v1alpha1): remove redundant condition in if clause
2 parents 8f2b8ac + 6bb7aa8 commit 820372e

File tree

2 files changed

+2
-2
lines changed
  • pkg/plugins/optional/helm/v1alpha/scaffolds/internal/templates/chart-templates/cert-manager
  • testdata/project-v4-with-plugins/dist/chart/templates/certmanager

2 files changed

+2
-2
lines changed

pkg/plugins/optional/helm/v1alpha/scaffolds/internal/templates/chart-templates/cert-manager/certificate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ spec:
7777
name: selfsigned-issuer
7878
secretName: webhook-server-cert
7979
{{` + "`" + `{{- end }}` + "`" + `}}
80-
{{ "{{- if and .Values.metrics.enable .Values.certmanager.enable }}" }}
80+
{{ "{{- if .Values.metrics.enable }}" }}
8181
---
8282
# Certificate for the metrics
8383
apiVersion: cert-manager.io/v1

testdata/project-v4-with-plugins/dist/chart/templates/certmanager/certificate.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ spec:
3333
name: selfsigned-issuer
3434
secretName: webhook-server-cert
3535
{{- end }}
36-
{{- if and .Values.metrics.enable .Values.certmanager.enable }}
36+
{{- if .Values.metrics.enable }}
3737
---
3838
# Certificate for the metrics
3939
apiVersion: cert-manager.io/v1

0 commit comments

Comments
 (0)