UNCLASSIFIED

Commit 76d23e1d authored by kevin.wilder's avatar kevin.wilder
Browse files

Merge branch 'fix-extralabels' into 'main'

Fix extralabels indentation and add to Deployment pod template

See merge request !10
parents a2457f05 2e8d10cd
Pipeline #393636 passed with stages
in 5 minutes and 26 seconds
# Changelog
---
## [29.1.0-bb.7] - 2021-07-27
### Fixes
- Fixed extraLabels indentation in all resources that have it.
### Added
- Added extraLabels to Deployment template labels.
## [29.1.0-bb.6] - 2021-06-30
### Added
- Add openshift toggle, conditionally add port 5353 egress. Changing "openshift:" to true in values.yaml will enable.
......
apiVersion: v2
name: nexus-repository-manager
version: 29.1.0-bb.6
version: 29.1.0-bb.7
appVersion: 3.29.0
description: Sonatype Nexus Repository Manager - Universal Binary repository
type: application
......
......@@ -4,11 +4,11 @@ kind: ConfigMap
metadata:
name: {{ template "nexus.name" . }}-proxy
labels: {{- include "nexus.labels" . | nindent 4 }}
{{- if .Values.nexus.extraLabels }}
{{- with .Values.nexus.extraLabels }}
{{ toYaml . | indent 4 }}
{{- end }}
{{- end }}
{{- if .Values.nexus.extraLabels }}
{{- with .Values.nexus.extraLabels }}
{{ toYaml . }}
{{- end }}
{{- end }}
data:
proxy: {{ .Values.proxy.request | toJson | quote }}
{{- end }}
......
......@@ -4,11 +4,11 @@ kind: ConfigMap
metadata:
name: {{ template "nexus.name" . }}-sso
labels: {{- include "nexus.labels" . | nindent 4 }}
{{- if .Values.nexus.extraLabels }}
{{- with .Values.nexus.extraLabels }}
{{ toYaml . | indent 4 }}
{{- end }}
{{- end }}
{{- if .Values.nexus.extraLabels }}
{{- with .Values.nexus.extraLabels }}
{{ toYaml . }}
{{- end }}
{{- end }}
data:
idp-metadata: {{ .Values.sso.idp_data | toJson | quote }}
#realm: {{ .Values.sso.realm | quote }}
......
......@@ -5,11 +5,11 @@ metadata:
name: {{ template "nexus.name" . }}-license
labels:
{{ include "nexus.labels" . | indent 4 }}
{{- if .Values.nexus.extraLabels }}
{{- with .Values.nexus.extraLabels }}
{{ toYaml . | indent 4 }}
{{- end }}
{{- end }}
{{- if .Values.nexus.extraLabels }}
{{- with .Values.nexus.extraLabels }}
{{ toYaml . }}
{{- end }}
{{- end }}
data:
{{ include "nexus.licenseKey" . | indent 2 }}
{{- end -}}
\ No newline at end of file
{{- end -}}
......@@ -13,11 +13,11 @@ metadata:
name: {{ template "nexus.name" . }}-secret
labels:
{{ include "nexus.labels" . | indent 4 }}
{{- if .Values.nexus.extraLabels }}
{{- with .Values.nexus.extraLabels }}
{{ toYaml . | indent 4 }}
{{- end }}
{{- end }}
{{- if .Values.nexus.extraLabels }}
{{- with .Values.nexus.extraLabels }}
{{ toYaml . }}
{{- end }}
{{- end }}
data:
admin.password: {{ $nexusAdminPass }}
admin.username: YWRtaW4K
......
......@@ -4,11 +4,11 @@ kind: ConfigMap
metadata:
name: {{ template "nexus.name" . }}-properties
labels: {{- include "nexus.labels" . | nindent 4 }}
{{- if .Values.nexus.extraLabels }}
{{- with .Values.nexus.extraLabels }}
{{ toYaml . | indent 4 }}
{{- end }}
{{- end }}
{{- if .Values.nexus.extraLabels }}
{{- with .Values.nexus.extraLabels }}
{{ toYaml . }}
{{- end }}
{{- end }}
data:
nexus.properties: |
{{- $data := dict -}}
......@@ -20,4 +20,4 @@ data:
{{- range $k, $v := $data }}
{{ $k }}={{ $v }}
{{- end }}
{{- end }}
\ No newline at end of file
{{- end }}
......@@ -5,11 +5,11 @@ metadata:
name: {{ template "nexus.name" . }}-conf
labels:
{{ include "nexus.labels" . | indent 4 }}
{{- if .Values.nexus.extraLabels }}
{{- with .Values.nexus.extraLabels }}
{{ toYaml . | indent 4 }}
{{- end }}
{{- end }}
{{- if .Values.nexus.extraLabels }}
{{- with .Values.nexus.extraLabels }}
{{ toYaml . }}
{{- end }}
{{- end }}
data:
{{ toYaml .Values.config.data | indent 2 }}
{{- end }}
\ No newline at end of file
{{- end }}
......@@ -4,11 +4,11 @@ metadata:
name: {{ template "nexus.fullname" . }}
labels:
{{ include "nexus.labels" . | indent 4 }}
{{- if .Values.nexus.extraLabels }}
{{- with .Values.nexus.extraLabels }}
{{ toYaml . | indent 4 }}
{{- end }}
{{- if .Values.nexus.extraLabels }}
{{- with .Values.nexus.extraLabels }}
{{ toYaml . }}
{{- end }}
{{- end }}
{{- if .Values.deployment.annotations }}
annotations:
{{ toYaml .Values.deployment.annotations | indent 4 }}
......@@ -34,6 +34,9 @@ spec:
{{- end }}
labels:
{{- include "nexus.selectorLabels" . | nindent 8 }}
{{- with .Values.nexus.extraLabels }}
{{ toYaml . }}
{{- end }}
spec:
serviceAccountName: {{ include "nexus.serviceAccountName" . }}
{{- if .Values.deployment.initContainers }}
......
......@@ -8,11 +8,11 @@ metadata:
name: {{ $fullName }}
labels:
{{- include "nexus.labels" . | nindent 4 }}
{{- if .Values.nexus.extraLabels }}
{{- with .Values.nexus.extraLabels }}
{{ toYaml . | indent 4 }}
{{- end }}
{{- end }}
{{- if .Values.nexus.extraLabels }}
{{- with .Values.nexus.extraLabels }}
{{ toYaml . }}
{{- end }}
{{- end }}
{{- with .Values.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
......
......@@ -3,9 +3,11 @@ apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole
metadata:
labels: {{- include "nexus.labels" . | nindent 4 }}
{{- if .Values.nexus.extraLabels }}
{{- with .Values.nexus.extraLabels }}
{{ toYaml . | indent 4 }}
{{ toYaml . }}
{{- end }}
{{- end }}
name: {{ template "nexus.name" . }}-psp-use
rules:
- apiGroups:
......@@ -16,4 +18,4 @@ rules:
- {{ template "nexus.name" . }}
verbs:
- use
{{- end -}}
\ No newline at end of file
{{- end -}}
......@@ -3,9 +3,11 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
labels: {{- include "nexus.labels" . | nindent 4 }}
{{- if .Values.nexus.extraLabels }}
{{- with .Values.nexus.extraLabels }}
{{ toYaml . | indent 4 }}
{{ toYaml . }}
{{- end }}
{{- end }}
name: {{ template "nexus.name" . }}-psp-use
roleRef:
apiGroup: rbac.authorization.k8s.io
......@@ -14,4 +16,4 @@ roleRef:
subjects:
- kind: ServiceAccount
name: {{ include "nexus.serviceAccountName" . }}
{{- end -}}
\ No newline at end of file
{{- end -}}
......@@ -3,9 +3,11 @@ apiVersion: policy/v1beta1
kind: PodSecurityPolicy
metadata:
labels: {{- include "nexus.labels" . | nindent 4 }}
{{- if .Values.nexus.extraLabels }}
{{- with .Values.nexus.extraLabels }}
{{ toYaml . | indent 4 }}
{{ toYaml . }}
{{- end }}
{{- end }}
name: {{ template "nexus.name" . }}
spec:
requiredDropCapabilities:
......
......@@ -6,11 +6,11 @@ metadata:
name: {{ .Values.persistence.pdName }}
labels:
{{ include "nexus.labels" . | indent 4 }}
{{- if .Values.nexus.extraLabels }}
{{- with .Values.nexus.extraLabels }}
{{ toYaml . | indent 4 }}
{{- end }}
{{- end }}
{{- if .Values.nexus.extraLabels }}
{{- with .Values.nexus.extraLabels }}
{{ toYaml . }}
{{- end }}
{{- end }}
spec:
capacity:
storage: {{ .Values.persistence.storageSize }}
......
......@@ -5,11 +5,11 @@ metadata:
name: {{ template "nexus.fullname" . }}-data
labels:
{{ include "nexus.labels" . | indent 4 }}
{{- if .Values.nexus.extraLabels }}
{{- with .Values.nexus.extraLabels }}
{{ toYaml . | indent 4 }}
{{- end }}
{{- end }}
{{- if .Values.nexus.extraLabels }}
{{- with .Values.nexus.extraLabels }}
{{ toYaml . }}
{{- end }}
{{- end }}
{{- if .Values.persistence.annotations }}
annotations:
{{ toYaml .Values.persistence.annotations | indent 4 }}
......
......@@ -10,11 +10,11 @@ metadata:
{{- end }}
labels:
{{- include "nexus.labels" . | nindent 4 }}
{{- if .Values.nexus.extraLabels }}
{{- with .Values.nexus.extraLabels }}
{{ toYaml . | indent 4 }}
{{- end }}
{{- end }}
{{- if .Values.nexus.extraLabels }}
{{- with .Values.nexus.extraLabels }}
{{ toYaml . }}
{{- end }}
{{- end }}
spec:
type: {{ .Values.service.type }}
ports:
......
......@@ -4,11 +4,11 @@ kind: ServiceAccount
metadata:
name: {{ include "nexus.serviceAccountName" . }}
labels: {{- include "nexus.labels" . | nindent 4 }}
{{- if .Values.nexus.extraLabels }}
{{- with .Values.nexus.extraLabels }}
{{ toYaml . | indent 4 }}
{{- end }}
{{- if .Values.nexus.extraLabels }}
{{- with .Values.nexus.extraLabels }}
{{ toYaml . }}
{{- end }}
{{- end }}
{{- with .Values.serviceAccount.annotations }}
annotations: {{- toYaml . | nindent 4 }}
{{- end }}
......
......@@ -100,6 +100,8 @@ image:
pullPolicy: IfNotPresent
nexus:
extraLabels:
app: nexus-repository-manager
docker:
enabled: false
registries: []
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment