Skip to content

Commit

Permalink
fix: Add podLabels to deployment (#139)
Browse files Browse the repository at this point in the history
  • Loading branch information
ekarlso authored Aug 1, 2022
1 parent a55d4b5 commit bb9b5ae
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 12 deletions.
2 changes: 1 addition & 1 deletion dotnet/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ name: dotnet
version: 11.0.1
dependencies:
- name: libchart
version: 2.0.1
version: 2.0.2
repository: file://../libchart
2 changes: 1 addition & 1 deletion golang/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ name: golang
version: 15.0.1
dependencies:
- name: libchart
version: 2.0.1
version: 2.0.2
repository: file://../libchart
2 changes: 1 addition & 1 deletion java/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ name: java
version: 8.0.1
dependencies:
- name: libchart
version: 2.0.1
version: 2.0.2
repository: file://../libchart
2 changes: 1 addition & 1 deletion libchart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: library
# 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: 2.0.1
version: 2.0.2

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
3 changes: 3 additions & 0 deletions libchart/templates/_deployment.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ spec:
{{- end }}
labels:
{{- include "libchart.labels" . | nindent 8 }}
{{- with .Values.podLabels }}
{{ toYaml . | nindent 8 }}
{{- end }}
spec:
{{- include "libchart.pod" . | nindent 6 -}}
{{- end }}
Expand Down
11 changes: 5 additions & 6 deletions libchart/templates/_statefulset.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,16 @@ spec:
{{- include "libchart.selectorLabels" . | nindent 6 }}
template:
metadata:
labels:
{{- include "libchart.labels" . | nindent 8 }}
{{- if .Values.podLabels }}
{{ toYaml .Values.podLabels | nindent 8 }}
{{- end -}}
{{- if .Values.podAnnotations }}
annotations:
{{ toYaml .Values.podAnnotations | nindent 8 }}
{{- end }}
labels:
{{- include "libchart.labels" . | nindent 8 }}
{{- with .Values.podLabels }}
{{ toYaml . | nindent 8 }}
{{- end }}
spec:
spec:
{{- include "libchart.pod" . | nindent 6 -}}
{{- end }}
{{- end }}
2 changes: 1 addition & 1 deletion nodejs/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ name: nodejs
version: 15.0.1
dependencies:
- name: libchart
version: 2.0.1
version: 2.0.2
repository: file://../libchart
2 changes: 1 addition & 1 deletion web/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ name: web
version: 12.0.1
dependencies:
- name: libchart
version: 2.0.1
version: 2.0.2
repository: file://../libchart

0 comments on commit bb9b5ae

Please sign in to comment.