Skip to content

Commit 57c012c

Browse files
committed
add useSecretsForPrivateRepositories to chart values
1 parent 94fe6f7 commit 57c012c

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

helm/charts/k8s-image-availability-exporter/templates/rbac.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ kind: ClusterRole
44
metadata:
55
name: {{ template "k8s-image-availability-exporter.fullname" . }}
66
rules:
7+
{{- if .Values.k8sImageAvailabilityExporter.useSecretsForPrivateRepositories }}
78
- apiGroups:
89
- ""
910
resources:
@@ -12,6 +13,7 @@ rules:
1213
- list
1314
- watch
1415
- get
16+
{{- end }}
1517
- apiGroups:
1618
- ""
1719
resources:

helm/charts/k8s-image-availability-exporter/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ k8sImageAvailabilityExporter:
55
pullPolicy: IfNotPresent
66
replicas: 1
77
resources: {}
8+
useSecretsForPrivateRepositories: true # Setting this to false will prevent k8s-iae having unconstrained cluster-wide secret access
89
args:
910
- --bind-address=:8080
1011

0 commit comments

Comments
 (0)