Skip to content

Commit

Permalink
fix(base-cluster/kube-janitor): enable artifacthub-values and correct…
Browse files Browse the repository at this point in the history
…ly prefix docker.io registry (#1048)
  • Loading branch information
cwrau authored Jul 24, 2024
1 parent 4ef2389 commit 17b9baf
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
2 changes: 2 additions & 0 deletions .github/trusted_registries.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ registries:
curl: ALL_TAGS
fluxcd: ALL_IMAGES
grafana: ALL_IMAGES
hjacobs:
kube-janitor: ALL_TAGS
stellio: ALL_IMAGES
velero: ALL_IMAGES
vladgh:
Expand Down
2 changes: 2 additions & 0 deletions charts/base-cluster/ci/artifacthub-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,5 @@ monitoring:
pagerduty:
enabled: true
integrationKey: INTEGRATION_KEY
kube-janitor:
enabled: true
13 changes: 4 additions & 9 deletions charts/base-cluster/templates/global/kube-janitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,11 @@ spec:
mode: enabled
values:
priorityClassName: cluster-components
{{- $image := dict -}}
{{- if .Values.global.imageRegistry -}}
{{- $image = set $image "repository" (printf "%s/hjacobs/kube-janitor" $.Values.global.imageRegistry) -}}
{{- end }}
{{- with dig "kube-janitor" "charts" "kube-janitor" "tag" "" .Values.global.helmRepositories -}}
{{- $image = set $image "tag" . -}}
{{- end }}
{{- with $image }}
image: {{- toYaml $image | nindent 6 }}
{{- $image := dict "repository" (printf "%s/hjacobs/kube-janitor" ($.Values.global.imageRegistry | default (include "base-cluster.defaultRegistry" (dict)))) -}}
{{- with dig "kube-janitor" "charts" "kube-janitor" "tag" "" .Values.global.helmRepositories -}}
{{- $image = set $image "tag" . -}}
{{- end }}
image: {{- toYaml $image | nindent 6 }}
resources:
limits:
memory: 1Gi
Expand Down

0 comments on commit 17b9baf

Please sign in to comment.