Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

Commit

Permalink
Merge pull request #269 from hamza3202/add-labels-to-nexus-resources
Browse files Browse the repository at this point in the history
Add labels to nexus pods and pvc
  • Loading branch information
rjkernick authored Mar 25, 2021
2 parents 71119b0 + e12a825 commit c1057e0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/sonatype-nexus/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: sonatype-nexus
version: 4.4.1
version: 4.4.2
appVersion: 3.27.0
description: Sonatype Nexus is an open source repository manager
keywords:
Expand Down
6 changes: 6 additions & 0 deletions charts/sonatype-nexus/templates/deployment-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ spec:
labels:
app: {{ template "nexus.name" . }}
release: {{ .Release.Name }}
{{- if .Values.nexus.labels }}
{{ toYaml .Values.nexus.labels | indent 8 }}
{{- end }}
spec:
{{- if .Values.deployment.initContainers }}
initContainers:
Expand Down Expand Up @@ -344,6 +347,9 @@ spec:
name: {{ template "nexus.fullname" . }}-data
labels:
{{ include "nexus.labels" . | indent 10 }}
{{- if .Values.nexus.labels }}
{{ toYaml .Values.nexus.labels | indent 10 }}
{{- end }}
{{- if .Values.persistence.annotations }}
annotations:
{{ toYaml .Values.persistence.annotations | indent 10 }}
Expand Down

0 comments on commit c1057e0

Please sign in to comment.