Skip to content

Commit 772be02

Browse files
committed
feat(docker-registry-ui): when ui.deleteImages is true, add REGISTRY_STORAGE_DELETE_ENABLED to the registry
1 parent 40a9851 commit 772be02

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
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: 1.1.1
3+
version: 1.1.2
44
appVersion: "2.5.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-deployment.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,13 @@ spec:
3636
env:
3737
- name: REGISTRY_HTTP_ADDR
3838
value: {{ printf "%s:%d" "0.0.0.0" (.Values.registry.service.targetPort | int) }}
39+
{{- if .Values.ui.deleteImages }}
40+
- name: REGISTRY_STORAGE_DELETE_ENABLED
41+
value: 'true'
42+
{{- end }}
3943
{{- range .Values.registry.extraEnv }}
40-
- name: {{ .name }}
41-
value: {{ .value }} | toString
44+
- name: {{ .name | quote }}
45+
value: {{ .value | quote }}
4246
{{- end }}
4347
ports:
4448
- name: http

0 commit comments

Comments
 (0)