Skip to content

Commit

Permalink
Fix indentation for deploy, ds and pod annotations (#187)
Browse files Browse the repository at this point in the history
Signed-off-by: Erwan Vallienne <[email protected]>
  • Loading branch information
erwanval authored Aug 28, 2024
1 parent 8561793 commit 5d2edb7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions charts/crowdsec/templates/agent-daemonSet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ metadata:
version: v1
{{- if .Values.agent.daemonsetAnnotations }}
annotations:
{{ toYaml .Values.agent.daemonsetAnnotations | trim | indent 4 }}
{{ toYaml .Values.agent.daemonsetAnnotations | trim | indent 4 }}
{{- end }}
spec:
selector:
Expand All @@ -25,10 +25,10 @@ spec:
checksum/agent-configmap: {{ include (print $.Template.BasePath "/agent-configmap.yaml") . | sha256sum }}
checksum/acquis-configmap: {{ include (print $.Template.BasePath "/acquis-configmap.yaml") . | sha256sum }}
{{- if .Values.podAnnotations }}
{{- toYaml .Values.podAnnotations | trim | indent 8 }}
{{ toYaml .Values.podAnnotations | trim | indent 8 }}
{{- end }}
{{- if .Values.agent.podAnnotations }}
{{- toYaml .Values.agent.podAnnotations | trim | indent 8 }}
{{ toYaml .Values.agent.podAnnotations | trim | indent 8 }}
{{- end }}
labels:
k8s-app: {{ .Release.Name }}
Expand Down
6 changes: 3 additions & 3 deletions charts/crowdsec/templates/lapi-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ metadata:
version: v1
{{- if .Values.lapi.deployAnnotations }}
annotations:
{{ toYaml .Values.lapi.deployAnnotations | trim | indent 4 }}
{{ toYaml .Values.lapi.deployAnnotations | trim | indent 4 }}
{{- end }}
spec:
replicas: {{ .Values.lapi.replicas }}
Expand All @@ -27,10 +27,10 @@ spec:
checksum/lapi-secret: {{ include (print $.Template.BasePath "/lapi-secrets.yaml") . | sha256sum }}
checksum/lapi-configmap: {{ include (print $.Template.BasePath "/lapi-configmap.yaml") . | sha256sum }}
{{- if .Values.podAnnotations }}
{{- toYaml .Values.podAnnotations | trim | indent 8 }}
{{ toYaml .Values.podAnnotations | trim | indent 8 }}
{{- end }}
{{- if .Values.lapi.podAnnotations }}
{{- toYaml .Values.lapi.podAnnotations | trim | indent 8 }}
{{ toYaml .Values.lapi.podAnnotations | trim | indent 8 }}
{{- end }}
labels:
k8s-app: {{ .Release.Name }}
Expand Down

0 comments on commit 5d2edb7

Please sign in to comment.