Skip to content

Commit

Permalink
fix(helm): fixed annotations condition and indent
Browse files Browse the repository at this point in the history
  • Loading branch information
idan-starkware committed Jul 31, 2024
1 parent daf4c07 commit 1a77f99
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions deployments/helm/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ spec:
maxSurge: 1
template:
metadata:
{{- if .Values.deployment.annotations }}
annotations:
{{- if .Values.deployment.annotations }}
{{ toYaml .Values.deployment.annotations | nindent 8 }}
{{- end}}
{{- end }}
{{- if .Values.service.ports.monitoring.enabled }}
prometheus.io/scrape: "true"
prometheus.io/path: "/monitoring/metrics"
Expand Down
2 changes: 1 addition & 1 deletion deployments/helm/templates/p2p-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ metadata:
{{- include "papyrus.labels" . | nindent 4 }}
annotations:
{{- if .Values.p2p.service.annotations }}
{{ toYaml .Values.p2p.service.annotations | nindent 8 }}
{{ toYaml .Values.p2p.service.annotations | nindent 4 }}
{{- end}}
spec:
selector:
Expand Down

0 comments on commit 1a77f99

Please sign in to comment.