Skip to content

Commit

Permalink
sophora-admin-dashboard: Don't render annotations for Service if em…
Browse files Browse the repository at this point in the history
…pty (#90)

* sophora-admin-dashboard: Don't render `annotations` for Service if empty

* remove manual line break

---------

Co-authored-by: Philip Dakowitz <[email protected]>
  • Loading branch information
DanielRaapDev and philmtd authored May 7, 2024
1 parent 401bb2d commit 7d2dc7e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/sophora-admin-dashboard/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ maintainers:
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.2.0
version: 1.2.1
4 changes: 3 additions & 1 deletion charts/sophora-admin-dashboard/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ metadata:
name: {{ include "sophora-admin-dashboard.fullname" . }}
labels:
{{- include "sophora-admin-dashboard.labels" . | nindent 4 }}
annotations: {{- toYaml .Values.service.annotations | nindent 4 }}
{{- with .Values.service.annotations }}
annotations: {{- toYaml . | nindent 4 }}
{{- end }}
spec:
type: {{ .Values.service.type }}
{{ if .Values.service.clusterIP -}}
Expand Down

0 comments on commit 7d2dc7e

Please sign in to comment.