Skip to content
Snippets Groups Projects
Unverified Commit e3a6eb45 authored by Clovis Durand's avatar Clovis Durand
Browse files

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

parent 791c1618
No related branches found
No related tags found
No related merge requests found
......@@ -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 }}
......
......@@ -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: ""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment