Skip to content

Commit 1aa206f

Browse files
committed
fix(docker-registry-ui): fix additionalSpec for user-interface and registry-server
1 parent ec0176e commit 1aa206f

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

charts/docker-registry-ui/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
22
name: docker-registry-ui
3-
version: 0.4.1
3+
version: 0.4.2
44
appVersion: "2.3.0"
55
kubeVersion: ">=1.19.0-0"
66
description: The simplest and most complete UI for your private registry

charts/docker-registry-ui/templates/registry-service.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ metadata:
77
app.kubernetes.io/component : registry-server
88
{{- include "docker-registry-ui.labels" . | nindent 4 }}
99
spec:
10+
selector:
11+
app.kubernetes.io/component : registry-server
12+
{{- include "docker-registry-ui.labels" . | nindent 4 }}
1013
type: {{ .Values.registry.service.type }}
1114
ports:
1215
- port: {{ .Values.registry.service.port }}
@@ -16,10 +19,7 @@ spec:
1619
{{- if (and (eq .Values.registry.service.type "NodePort") .Values.registry.service.nodePort) }}
1720
nodePort: {{ .Values.registry.service.nodePort }}
1821
{{- end }}
19-
selector:
20-
app.kubernetes.io/component : registry-server
21-
{{- include "docker-registry-ui.labels" . | nindent 4 }}
2222
{{- if .Values.registry.service.additionalSpec }}
23-
{{ tpl .Values.registry.service.additionalSpec . | nindent 2 | trim }}
23+
{{ tpl .Values.registry.service.additionalSpec . | nindent 2 | trim }}
2424
{{- end }}
2525
{{- end }}

charts/docker-registry-ui/templates/ui-service.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ metadata:
66
app.kubernetes.io/component : user-interface
77
{{- include "docker-registry-ui.labels" . | nindent 4 }}
88
spec:
9+
selector:
10+
app.kubernetes.io/component : user-interface
11+
{{- include "docker-registry-ui.labels" . | nindent 4 }}
912
type: {{ .Values.ui.service.type }}
1013
ports:
1114
- port: {{ .Values.ui.service.port }}
@@ -15,9 +18,6 @@ spec:
1518
{{- if (and (eq .Values.ui.service.type "NodePort") .Values.ui.service.nodePort) }}
1619
nodePort: {{ .Values.ui.service.nodePort }}
1720
{{- end }}
18-
selector:
19-
app.kubernetes.io/component : user-interface
20-
{{- include "docker-registry-ui.labels" . | nindent 4 }}
2121
{{- if .Values.ui.service.additionalSpec }}
22-
{{ tpl .Values.ui.service.additionalSpec . | nindent 2 | trim }}
22+
{{ tpl .Values.ui.service.additionalSpec . | nindent 2 | trim }}
2323
{{- end }}

0 commit comments

Comments
 (0)