Skip to content

Commit

Permalink
RoleBinding will not be genereted if component is dissabled
Browse files Browse the repository at this point in the history
  • Loading branch information
osmman authored and sallyom committed Dec 11, 2023
1 parent 6a42ea7 commit 17a263f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/trusted-artifact-signer/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ sources:
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.26
version: 0.1.27
2 changes: 2 additions & 0 deletions charts/trusted-artifact-signer/templates/rolebinding.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{{- range $configKey, $config := .Values.configs }}
{{- if $config.rolebindings }}
{{- if or (not (hasKey $config "enabled")) (eq $config.enabled true) }}
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
Expand All @@ -17,4 +18,5 @@ subjects:
namespace: {{ $config.namespace }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}

0 comments on commit 17a263f

Please sign in to comment.