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

Add labels to nexus pods and pvc #269

Merged
merged 2 commits into from
Mar 25, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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