From 772be0269aa8d1b167a5b1190665a36916cf8692 Mon Sep 17 00:00:00 2001 From: Joxit Date: Sun, 16 Jul 2023 08:22:47 +0200 Subject: [PATCH] feat(docker-registry-ui): when `ui.deleteImages` is true, add `REGISTRY_STORAGE_DELETE_ENABLED` to the registry --- charts/docker-registry-ui/Chart.yaml | 2 +- .../docker-registry-ui/templates/registry-deployment.yaml | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/charts/docker-registry-ui/Chart.yaml b/charts/docker-registry-ui/Chart.yaml index 1be08c6..c226a5c 100644 --- a/charts/docker-registry-ui/Chart.yaml +++ b/charts/docker-registry-ui/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: docker-registry-ui -version: 1.1.1 +version: 1.1.2 appVersion: "2.5.0" kubeVersion: ">=1.19.0-0" description: The simplest and most complete UI for your private registry diff --git a/charts/docker-registry-ui/templates/registry-deployment.yaml b/charts/docker-registry-ui/templates/registry-deployment.yaml index ec6b59d..34d4e38 100644 --- a/charts/docker-registry-ui/templates/registry-deployment.yaml +++ b/charts/docker-registry-ui/templates/registry-deployment.yaml @@ -36,9 +36,13 @@ spec: env: - name: REGISTRY_HTTP_ADDR value: {{ printf "%s:%d" "0.0.0.0" (.Values.registry.service.targetPort | int) }} + {{- if .Values.ui.deleteImages }} + - name: REGISTRY_STORAGE_DELETE_ENABLED + value: 'true' + {{- end }} {{- range .Values.registry.extraEnv }} - - name: {{ .name }} - value: {{ .value }} | toString + - name: {{ .name | quote }} + value: {{ .value | quote }} {{- end }} ports: - name: http