You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Followup on #696.
Now that we can disable the creation of the CRDs in the helm chart, we can also move the creation of the roles for the Profiles CRD behind the toggle, as they are not needed if the CRD does not exist.
Expected Behaviour
If I disable the creation of the CRDs in the helm chart, I expect the chart to not create roles and role-bindings concerning the non-existing CRDs.
Current Behaviour
The chart creates the roles in all cases, if the CRDs are created or not.
Possible Solution
Wrap the following lines inside a {{- if .Values.createCRDs }} ... {{- end}} block:
Without this change, users that have to skip creating the CRDs due to access rights might not be able to install the chart. For example I cannot create the role {{ .Release.Name }}-profiles and thus cannot install the chart.
The text was updated successfully, but these errors were encountered:
Followup on #696.
Now that we can disable the creation of the CRDs in the helm chart, we can also move the creation of the roles for the Profiles CRD behind the toggle, as they are not needed if the CRD does not exist.
Expected Behaviour
If I disable the creation of the CRDs in the helm chart, I expect the chart to not create roles and role-bindings concerning the non-existing CRDs.
Current Behaviour
The chart creates the roles in all cases, if the CRDs are created or not.
Possible Solution
Wrap the following lines inside a
{{- if .Values.createCRDs }} ... {{- end}}
block:faas-netes/chart/openfaas/templates/controller-rbac.yaml
Lines 76 to 83 in 08ffc57
faas-netes/chart/openfaas/templates/controller-rbac.yaml
Lines 184 to 204 in 08ffc57
faas-netes/chart/openfaas/templates/controller-rbac.yaml
Lines 205 to 224 in 08ffc57
Context / Usecase
Without this change, users that have to skip creating the CRDs due to access rights might not be able to install the chart. For example I cannot create the role
{{ .Release.Name }}-profiles
and thus cannot install the chart.The text was updated successfully, but these errors were encountered: