Skip to content

Commit c4c3383

Browse files
committed
fix(registry): garbage collect error
1 parent 2a323e0 commit c4c3383

2 files changed

Lines changed: 11 additions & 13 deletions

File tree

charts/registry/templates/registry-cronjob-daily.yaml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,17 @@ spec:
2323
image: {{.Values.imageRegistry}}/{{.Values.imageOrg}}/python-dev:latest
2424
imagePullPolicy: {{.Values.imagePullPolicy}}
2525
args:
26-
- netcat
27-
- -v
28-
- -u
29-
- $(DRYCC_STORAGE_ENDPOINT)
26+
- netcat
27+
- -v
28+
- -u
29+
- $(DRYCC_STORAGE_ENDPOINT)
3030
{{- include "builder.envs" . | indent 12 }}
3131
containers:
3232
- image: {{.Values.imageRegistry}}/{{.Values.imageOrg}}/registry:{{.Values.imageTag}}
3333
imagePullPolicy: {{.Values.imagePullPolicy}}
3434
name: drycc-registry-garbage-collect
3535
args:
36-
- /bin/bash
37-
- -c
38-
- /opt/registry/bin/registry
36+
- /bin/boot
3937
- garbage-collect
4038
- $(DRYCC_REGISTRY_CONFIG)
4139
- --dry-run

charts/registry/templates/registry-deployment.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ spec:
3232
image: {{.Values.imageRegistry}}/{{.Values.imageOrg}}/python-dev:latest
3333
imagePullPolicy: {{.Values.imagePullPolicy}}
3434
args:
35-
- netcat
36-
- -v
37-
- -u
38-
- $(DRYCC_STORAGE_ENDPOINT)
35+
- netcat
36+
- -v
37+
- -u
38+
- $(DRYCC_STORAGE_ENDPOINT)
3939
{{- include "registry.envs" . | indent 8 }}
4040
containers:
4141
- name: drycc-registry
@@ -80,6 +80,6 @@ spec:
8080
runAsGroup: 1001
8181
runAsUser: 1001
8282
volumes:
83-
- name: registry-storage
84-
emptyDir: {}
83+
- name: registry-storage
84+
emptyDir: {}
8585
{{- end }}

0 commit comments

Comments
 (0)