diff --git a/charts/sbom-operator/templates/clusterrole.yaml b/charts/sbom-operator/templates/clusterrole.yaml index 9759986..a570606 100644 --- a/charts/sbom-operator/templates/clusterrole.yaml +++ b/charts/sbom-operator/templates/clusterrole.yaml @@ -18,6 +18,7 @@ rules: - secrets verbs: - get +{{- if and .Values.args (hasKey .Values.args "targets") .Values.args.targets (contains "configmap" .Values.args.targets) }} - apiGroups: - "" resources: @@ -27,6 +28,7 @@ rules: - create - list - delete +{{- end }} - apiGroups: - "" resources: