fix(certificate): subject in body must be of type object

This commit is contained in:
2025-10-14 23:26:09 +02:00
parent 4102fc9014
commit 4323c36d2e
2 changed files with 11 additions and 1 deletions

View File

@@ -48,6 +48,15 @@ spec:
secretTemplate:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- if or .Values.certificate.new.subject.countries
.Values.certificate.new.subject.localities
.Values.certificate.new.subject.organizationalUnits
.Values.certificate.new.subject.organizations
.Values.certificate.new.subject.postalCodes
.Values.certificate.new.subject.provinces
.Values.certificate.new.subject.serialNumber
.Values.certificate.new.subject.streetAddresses
}}
subject:
{{- with .Values.certificate.new.subject.countries }}
countries:
@@ -80,6 +89,7 @@ spec:
streetAddresses:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
usages:
{{- range .Values.certificate.new.usages }}
- {{ . }}

View File

@@ -99,7 +99,7 @@ tests:
path: spec.secretTemplate.annotations
- exists:
path: spec.secretTemplate.labels
- exists:
- notExists:
path: spec.subject
- notExists:
path: spec.subject.countries