Skip to content

Commit

Permalink
fix(docker-registry-ui): unable to use persistent volume from existin…
Browse files Browse the repository at this point in the history
…g claim (#3)

fixes #3
  • Loading branch information
Joxit committed Aug 31, 2022
1 parent c32eb55 commit 3599395
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion charts/docker-registry-ui/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: docker-registry-ui
version: 0.2.0
version: 0.2.1
appVersion: "2.2.1"
kubeVersion: ">=1.19.0-0"
description: The simplest and most complete UI for your private registry
Expand Down
2 changes: 1 addition & 1 deletion charts/docker-registry-ui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ helm upgrade --install docker-registry-ui joxit/docker-registry-ui
| `registry.image` | `registry:2.8.1` | The name and tag of the docker registry server image |
| `registry.imagePullSecrets` | `-` | Override default image pull secrets |
| `registry.imagePullPolicy` | `-` | Override default pull policy |
| `dataVolume.emptyDir` | `{}` | Configuration for the data directory |
| `registry.dataVolume` | `null` | Configuration for the data directory. When null it will create an emptyDir. |
| `registry.resources` | `{}` | The resource settings for registry server pod. |
| `registry.nodeSelector` | `{}` | Optional YAML string to specify a nodeSelector config. |
| `registry.tolerations` | `[]` | Optional YAML string to specify tolerations. |
Expand Down
6 changes: 5 additions & 1 deletion charts/docker-registry-ui/templates/registry-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,11 @@ spec:
{{- toYaml .Values.registry.resources | nindent 12 }}
volumes:
- name: data
{{- toYaml .Values.registry.dataVolume | nindent 10 }}
{{- if .Values.registry.dataVolume }}
{{- toYaml .Values.registry.dataVolume | nindent 10 }}
{{- else }}
emptyDir: {}
{{- end }}
{{- with .Values.registry.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 | trim }}
Expand Down
5 changes: 2 additions & 3 deletions charts/docker-registry-ui/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,8 @@ registry:
imagePullSecrets: "-"
# Override default pull policy
imagePullPolicy: "-"
# Configuration for the data directory
dataVolume:
emptyDir: {}
# Configuration for the data directory. When null it will create an emptyDir.
dataVolume: null
# The resource settings for registry server pod.
resources: {}
# Optional YAML string to specify a nodeSelector config.
Expand Down

0 comments on commit 3599395

Please sign in to comment.