Skip to content

Commit 3599395

Browse files
committed
fix(docker-registry-ui): unable to use persistent volume from existing claim (#3)
fixes #3
1 parent c32eb55 commit 3599395

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
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.2.0
3+
version: 0.2.1
44
appVersion: "2.2.1"
55
kubeVersion: ">=1.19.0-0"
66
description: The simplest and most complete UI for your private registry

charts/docker-registry-ui/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ helm upgrade --install docker-registry-ui joxit/docker-registry-ui
7373
| `registry.image` | `registry:2.8.1` | The name and tag of the docker registry server image |
7474
| `registry.imagePullSecrets` | `-` | Override default image pull secrets |
7575
| `registry.imagePullPolicy` | `-` | Override default pull policy |
76-
| `dataVolume.emptyDir` | `{}` | Configuration for the data directory |
76+
| `registry.dataVolume` | `null` | Configuration for the data directory. When null it will create an emptyDir. |
7777
| `registry.resources` | `{}` | The resource settings for registry server pod. |
7878
| `registry.nodeSelector` | `{}` | Optional YAML string to specify a nodeSelector config. |
7979
| `registry.tolerations` | `[]` | Optional YAML string to specify tolerations. |

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,11 @@ spec:
4747
{{- toYaml .Values.registry.resources | nindent 12 }}
4848
volumes:
4949
- name: data
50-
{{- toYaml .Values.registry.dataVolume | nindent 10 }}
50+
{{- if .Values.registry.dataVolume }}
51+
{{- toYaml .Values.registry.dataVolume | nindent 10 }}
52+
{{- else }}
53+
emptyDir: {}
54+
{{- end }}
5155
{{- with .Values.registry.nodeSelector }}
5256
nodeSelector:
5357
{{- toYaml . | nindent 8 | trim }}

charts/docker-registry-ui/values.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,8 @@ registry:
8585
imagePullSecrets: "-"
8686
# Override default pull policy
8787
imagePullPolicy: "-"
88-
# Configuration for the data directory
89-
dataVolume:
90-
emptyDir: {}
88+
# Configuration for the data directory. When null it will create an emptyDir.
89+
dataVolume: null
9190
# The resource settings for registry server pod.
9291
resources: {}
9392
# Optional YAML string to specify a nodeSelector config.

0 commit comments

Comments
 (0)