Skip to content

Commit

Permalink
indent better
Browse files Browse the repository at this point in the history
  • Loading branch information
sookloeckner committed Sep 13, 2022
1 parent aafd3f4 commit c7361ae
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions db-instances/templates/dbinstance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ spec:
{{- end }}
{{- if $value.backup }}
backup:
{{ toYaml $value.backup | nindent 4 }}
{{ toYaml $value.backup | nindent 4 }}
{{- end }}
monitoring:
enabled: {{ $value.monitoring.enabled }}
Expand Down Expand Up @@ -83,7 +83,7 @@ metadata:
{{- include "db-instances.labels" $ | nindent 4 }}
data:
config: |
{{ $value.google.configMap.data | nindent 4 }}
{{ $value.google.configMap.data | nindent 4 }}
{{- if $value.google.clientSecret }}
---
apiVersion: v1
Expand All @@ -95,7 +95,7 @@ metadata:
{{- include "db-instances.labels" $ | nindent 4 }}
data:
credentials.json: |-
{{ $value.google.clientSecret | b64enc | nindent 4 }}
{{ $value.google.clientSecret | b64enc | nindent 4 }}
{{- end }}
{{- end }}
{{- end }}
Expand Down
2 changes: 1 addition & 1 deletion db-instances/templates/postgres_exporter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ spec:
name: queries
subPath: queries.yaml
nodeSelector:
{{ toYaml $nodeSelector | nindent 8 }}
{{ toYaml $nodeSelector | nindent 8 }}
volumes:
- name: db-secrets
secret:
Expand Down
2 changes: 1 addition & 1 deletion db-instances/templates/postgres_exporter_query.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ metadata:
name: dbinstance-pgexporter-query
data:
queries.yaml: |
{{ .Values.exporter.postgres.query | nindent 4 }}
{{ .Values.exporter.postgres.query | nindent 4 }}
16 changes: 8 additions & 8 deletions db-operator/templates/operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ spec:
labels:
{{- include "db-operator.labels" . | nindent 8 }}
{{- if .Values.podLabels }}
{{ toYaml .Values.podLabels | trim | nindent 8 }}
{{ toYaml .Values.podLabels | trim | nindent 8 }}
{{- end }}
annotations:
checksum/config: {{ include (print $.Template.BasePath "/config.yaml") . | sha256sum }}
{{- if .Values.annotations }}
{{ toYaml .Values.annotations | nindent 8 }}
{{- end }}
{{- if .Values.annotations }}
{{ toYaml .Values.annotations | nindent 8 }}
{{- end }}
spec:
{{- if .Values.serviceAccount.create }}
serviceAccountName: {{ template "db-operator.name" . }}-sa
Expand Down Expand Up @@ -79,13 +79,13 @@ spec:
name: config-volume
readOnly: true
resources:
{{ toYaml .Values.resources | nindent 12 }}
{{ toYaml .Values.resources | nindent 12 }}
nodeSelector:
{{ toYaml .Values.nodeSelector | nindent 8 }}
{{ toYaml .Values.nodeSelector | nindent 8 }}
affinity:
{{ toYaml .Values.affinity | nindent 8 }}
{{ toYaml .Values.affinity | nindent 8 }}
tolerations:
{{ toYaml .Values.tolerations | nindent 8 }}
{{ toYaml .Values.tolerations | nindent 8 }}
{{- if .Values.priorityClassName }}
priorityClassName: {{ .Values.priorityClassName }}
{{- end }}
Expand Down
2 changes: 1 addition & 1 deletion db-operator/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,5 @@ spec:
- {{ .Release.Namespace }}
selector:
matchLabels:
{{- include "db-operator.selectorLabels" . | nindent 6 }}
{{- include "db-operator.selectorLabels" . | nindent 6 }}
{{- end }}

0 comments on commit c7361ae

Please sign in to comment.