PR Suggestions

This commit is contained in:
ddelange
2022-08-08 10:58:50 +02:00
parent fd7fdcaa44
commit 76ff283a25
2 changed files with 20 additions and 5 deletions
+20
View File
@@ -3,6 +3,7 @@ apiVersion: batch/v1
kind: CronJob
metadata:
name: {{ template "docker-registry.fullname" . }}-garbage-collector
namespace: {{ .Values.namespace | default .Release.Namespace }}
labels:
app: {{ template "docker-registry.name" . }}
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
@@ -11,12 +12,31 @@ metadata:
spec:
schedule: {{ .Values.garbageCollect.schedule | quote }}
jobTemplate:
metadata:
labels:
app: {{ template "docker-registry.name" . }}
release: {{ .Release.Name }}
{{- with .Values.podLabels }}
{{ toYaml . | nindent 8 }}
{{- end }}
annotations:
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
checksum/secret: {{ include (print $.Template.BasePath "/secret.yaml") . | sha256sum }}
{{- if $.Values.podAnnotations }}
{{ toYaml $.Values.podAnnotations | indent 8 }}
{{- end }}
spec:
template:
spec:
{{- if or (eq .Values.serviceAccount.create true) (ne .Values.serviceAccount.name "") }}
serviceAccountName: {{ .Values.serviceAccount.name | default (include "docker-registry.fullname" .) }}
{{- end }}
{{- if .Values.imagePullSecrets }}
imagePullSecrets: {{ toYaml .Values.imagePullSecrets | nindent 12 }}
{{- end }}
{{- if .Values.priorityClassName }}
priorityClassName: "{{ .Values.priorityClassName }}"
{{- end }}
{{- if .Values.securityContext.enabled }}
securityContext:
fsGroup: {{ .Values.securityContext.fsGroup }}
-5
View File
@@ -77,9 +77,6 @@ storage: filesystem
secrets:
haSharedSecret: ""
htpasswd: ""
azure: {}
s3: {}
swift: {}
# Secrets for Azure
# azure:
# accountName: ""
@@ -96,7 +93,6 @@ secrets:
# username: ""
# password: ""
s3: {}
# Options for s3 storage type:
# s3:
# region: us-east-1
@@ -106,7 +102,6 @@ s3: {}
# encrypt: false
# secure: true
swift: {}
# Options for swift storage type:
# swift:
# authurl: http://swift.example.com/