Updated chart to accept configPath to fix distribution's 3.0.0 breaking change

Signed-off-by: Clovis Durand <cd.clovel19@gmail.com>
This commit is contained in:
Clovis Durand
2025-06-03 12:30:19 +02:00
parent 791c161883
commit e3a6eb45bf
5 changed files with 7 additions and 4 deletions
+1
View File
@@ -79,6 +79,7 @@ their default values.
| `secrets.swift.password` | Password for Swift configuration | `nil` |
| `secrets.haSharedSecret` | Shared secret for Registry | `nil` |
| `configData` | Configuration hash for docker | `nil` |
| `configPath` | Configuration mount point in docker, `/etc/docker/registry` for registry version 2, `/etc/distribution` for version 3 | `/etc/docker/registry` |
| `s3.region` | S3 region | `nil` |
| `s3.regionEndpoint` | S3 region endpoint | `nil` |
| `s3.bucket` | S3 bucket name | `nil` |
+1 -1
View File
@@ -148,7 +148,7 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this
{{- define "docker-registry.volumeMounts" -}}
- name: "{{ template "docker-registry.fullname" . }}-config"
mountPath: "/etc/docker/registry"
mountPath: {{ .Values.configPath }}
{{- if .Values.secrets.htpasswd }}
- name: auth
+1 -1
View File
@@ -58,7 +58,7 @@ spec:
- /bin/registry
- garbage-collect
- --delete-untagged={{ .Values.garbageCollect.deleteUntagged }}
- /etc/docker/registry/config.yml
- {{ .Values.configPath }}/config.yml
{{- if .Values.garbageCollect.resources }}
resources:
{{- toYaml .Values.garbageCollect.resources | nindent 16 }}
+1 -1
View File
@@ -60,7 +60,7 @@ spec:
command:
- /bin/registry
- serve
- /etc/docker/registry/config.yml
- {{ .Values.configPath }}/config.yml
ports:
- containerPort: 5000
{{- if .Values.metrics.enabled }}
+3 -1
View File
@@ -19,7 +19,7 @@ serviceAccount:
image:
repository: registry
tag: 2.8.1
tag: 3.0.0
pullPolicy: IfNotPresent
# imagePullSecrets:
# - name: docker
@@ -133,6 +133,7 @@ metrics:
labels: {}
rules: {}
configPath: /etc/distribution
configData:
version: 0.1
log:
@@ -176,6 +177,7 @@ securityContext:
fsGroupChangePolicy: Always
sysctls: []
supplementalGroups: []
runAsUser: 1000
fsGroup: 1000
priorityClassName: ""