mirror of
https://github.com/twuni/docker-registry.helm.git
synced 2026-08-27 06:17:17 +00:00
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:
@@ -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` |
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
@@ -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
@@ -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: ""
|
||||
|
||||
Reference in New Issue
Block a user