fix(serviceAccount): remove top level dict .spec
This commit is contained in:
parent
5c0f2fb310
commit
42af0f9739
@ -13,14 +13,13 @@ metadata:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
name: {{ include "prometheus-postgres-exporter.fullname" . }}
|
name: {{ include "prometheus-postgres-exporter.fullname" . }}
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
spec:
|
automountServiceAccountToken: {{ .Values.serviceAccount.new.automountServiceAccountToken }}
|
||||||
automountServiceAccountToken: {{ .Values.serviceAccount.new.automountServiceAccountToken }}
|
{{- with .Values.serviceAccount.new.imagePullSecrets }}
|
||||||
{{- with .Values.serviceAccount.new.imagePullSecrets }}
|
imagePullSecrets:
|
||||||
imagePullSecrets:
|
{{- toYaml . | nindent 4 }}
|
||||||
{{- toYaml . | nindent 4 }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- with .Values.serviceAccount.new.secrets }}
|
||||||
{{- with .Values.serviceAccount.new.secrets }}
|
secrets:
|
||||||
secrets:
|
{{- toYaml . | nindent 4 }}
|
||||||
{{- toYaml . | nindent 4 }}
|
{{- end }}
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
{{- end }}
|
@ -29,12 +29,12 @@ tests:
|
|||||||
- notExists:
|
- notExists:
|
||||||
path: metadata.labels
|
path: metadata.labels
|
||||||
- equal:
|
- equal:
|
||||||
path: spec.automountServiceAccountToken
|
path: automountServiceAccountToken
|
||||||
value: true
|
value: true
|
||||||
- notExists:
|
- notExists:
|
||||||
path: spec.imagePullSecrets
|
path: imagePullSecrets
|
||||||
- notExists:
|
- notExists:
|
||||||
path: spec.secrets
|
path: secrets
|
||||||
|
|
||||||
|
|
||||||
- it: Rendering serviceAccount with custom values.
|
- it: Rendering serviceAccount with custom values.
|
||||||
@ -65,14 +65,14 @@ tests:
|
|||||||
path: metadata.name
|
path: metadata.name
|
||||||
value: prometheus-postgres-exporter-unittest
|
value: prometheus-postgres-exporter-unittest
|
||||||
- equal:
|
- equal:
|
||||||
path: spec.automountServiceAccountToken
|
path: automountServiceAccountToken
|
||||||
value: false
|
value: false
|
||||||
- equal:
|
- equal:
|
||||||
path: spec.imagePullSecrets
|
path: imagePullSecrets
|
||||||
value:
|
value:
|
||||||
- name: "my-pull-secret"
|
- name: "my-pull-secret"
|
||||||
- equal:
|
- equal:
|
||||||
path: spec.secrets
|
path: secrets
|
||||||
value:
|
value:
|
||||||
- name: "my-secret"
|
- name: "my-secret"
|
||||||
namespace: "my-namespace"
|
namespace: "my-namespace"
|
||||||
|
Loading…
Reference in New Issue
Block a user