fix(docker-registry): configMapGenerator reference isn't being updated

This commit is contained in:
David Landry 2024-10-16 15:47:57 -04:00
parent 624bbf54c6
commit 2d33f4b575
4 changed files with 10 additions and 6 deletions

View file

@ -62,7 +62,7 @@ spec:
name: docker-registry-secret name: docker-registry-secret
key: proxyPassword key: proxyPassword
volumeMounts: volumeMounts:
- name: "docker-registry-config" - name: config
mountPath: "/etc/docker/registry" mountPath: "/etc/docker/registry"
- name: auth - name: auth
mountPath: /auth mountPath: /auth
@ -71,7 +71,7 @@ spec:
mountPath: /var/lib/registry/ mountPath: /var/lib/registry/
restartPolicy: OnFailure restartPolicy: OnFailure
volumes: volumes:
- name: docker-registry-config - name: config
configMap: configMap:
name: docker-registry-config name: docker-registry-config
- name: auth - name: auth

View file

@ -53,7 +53,7 @@ spec:
port: 5000 port: 5000
resources: resources:
{} {}
env: env:
- name: REGISTRY_HTTP_SECRET - name: REGISTRY_HTTP_SECRET
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
@ -79,18 +79,22 @@ spec:
secretKeyRef: secretKeyRef:
name: docker-registry-secret name: docker-registry-secret
key: proxyPassword key: proxyPassword
volumeMounts: volumeMounts:
- name: config - name: config
mountPath: "/etc/docker/registry" mountPath: "/etc/docker/registry"
readOnly: true
- name: auth - name: auth
mountPath: /auth mountPath: /auth
readOnly: true readOnly: true
- name: data - name: data
mountPath: /var/lib/registry/ mountPath: /var/lib/registry/
volumes: volumes:
- name: config - name: config
configMap: configMap:
name: docker-registry-config name: docker-registry-config
items:
- key: "config.yml"
path: "config.yml"
- name: auth - name: auth
secret: secret:
secretName: docker-registry-secret secretName: docker-registry-secret

View file

@ -12,4 +12,4 @@ resources:
configMapGenerator: configMapGenerator:
- name: docker-registry-config - name: docker-registry-config
files: files:
- config.yml - config.yml=cm/config.yml