Compare commits

...

2 Commits
0.1.2 ... 0.1.3

Author SHA1 Message Date
42af0f9739
fix(serviceAccount): remove top level dict .spec
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2024-11-25 19:35:46 +01:00
5c0f2fb310
core(chart): add further chart labels for search engine
All checks were successful
continuous-integration/drone/push Build is passing
2024-11-25 19:08:36 +01:00
3 changed files with 18 additions and 18 deletions

View File

@ -10,8 +10,9 @@ appVersion: "0.15.0"
keywords:
- prometheus
- prometheus exporter
- postgres
- prometheus-exporter
- postgres-postgres-exporter
- postgres-exporter
sources:
- https://github.com/prometheus-community/postgres_exporter

View File

@ -13,14 +13,13 @@ metadata:
{{- end }}
name: {{ include "prometheus-postgres-exporter.fullname" . }}
namespace: {{ .Release.Namespace }}
spec:
automountServiceAccountToken: {{ .Values.serviceAccount.new.automountServiceAccountToken }}
{{- with .Values.serviceAccount.new.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.serviceAccount.new.secrets }}
secrets:
{{- toYaml . | nindent 4 }}
{{- end }}
automountServiceAccountToken: {{ .Values.serviceAccount.new.automountServiceAccountToken }}
{{- with .Values.serviceAccount.new.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.serviceAccount.new.secrets }}
secrets:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}

View File

@ -29,12 +29,12 @@ tests:
- notExists:
path: metadata.labels
- equal:
path: spec.automountServiceAccountToken
path: automountServiceAccountToken
value: true
- notExists:
path: spec.imagePullSecrets
path: imagePullSecrets
- notExists:
path: spec.secrets
path: secrets
- it: Rendering serviceAccount with custom values.
@ -65,14 +65,14 @@ tests:
path: metadata.name
value: prometheus-postgres-exporter-unittest
- equal:
path: spec.automountServiceAccountToken
path: automountServiceAccountToken
value: false
- equal:
path: spec.imagePullSecrets
path: imagePullSecrets
value:
- name: "my-pull-secret"
- equal:
path: spec.secrets
path: secrets
value:
- name: "my-secret"
namespace: "my-namespace"