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: secretTemplate:
{{- toYaml . | nindent 4 }} {{- toYaml . | nindent 4 }}
{{- end }} {{- 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: subject:
{{- with .Values.certificate.new.subject.countries }} {{- with .Values.certificate.new.subject.countries }}
countries: countries:
@@ -80,6 +89,7 @@ spec:
streetAddresses: streetAddresses:
{{- toYaml . | nindent 4 }} {{- toYaml . | nindent 4 }}
{{- end }} {{- end }}
{{- end }}
usages: usages:
{{- range .Values.certificate.new.usages }} {{- range .Values.certificate.new.usages }}
- {{ . }} - {{ . }}

View File

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