fix(docker-registry): configmap suffix wasn't being applied because of namespace shennanigans

This commit is contained in:
David Landry 2024-10-16 16:09:59 -04:00
parent 2d33f4b575
commit c9a2ebe213
3 changed files with 23 additions and 41 deletions

View file

@ -4,7 +4,6 @@ apiVersion: batch/v1
kind: CronJob
metadata:
name: docker-registry-garbage-collector
namespace: gitops
labels:
app: docker-registry
chart: docker-registry-2.2.3
@ -23,7 +22,7 @@ spec:
spec:
template:
spec:
securityContext:
securityContext:
fsGroup: 1000
runAsUser: 1000
containers:
@ -31,11 +30,11 @@ spec:
image: "registry:2.8.1"
imagePullPolicy: IfNotPresent
command:
- /bin/registry
- garbage-collect
- --delete-untagged=true
- /etc/docker/registry/config.yml
env:
- /bin/registry
- garbage-collect
- --delete-untagged=true
- /etc/docker/registry/config.yml
env:
- name: REGISTRY_HTTP_SECRET
valueFrom:
secretKeyRef:
@ -61,7 +60,7 @@ spec:
secretKeyRef:
name: docker-registry-secret
key: proxyPassword
volumeMounts:
volumeMounts:
- name: config
mountPath: "/etc/docker/registry"
- name: auth
@ -70,7 +69,7 @@ spec:
- name: data
mountPath: /var/lib/registry/
restartPolicy: OnFailure
volumes:
volumes:
- name: config
configMap:
name: docker-registry-config
@ -78,8 +77,7 @@ spec:
secret:
secretName: docker-registry-secret
items:
- key: htpasswd
path: htpasswd
- key: htpasswd
path: htpasswd
- name: data
emptyDir: {}