PrefectHQ / prefect-helm

Helm charts for deploying Prefect Services
Apache License 2.0
100 stars 60 forks source link

feature: Add create options for role and rolebinding #295

Closed beilin-upstream closed 9 months ago

beilin-upstream commented 9 months ago

In the current charts it is impossible to disable the creation of a role and role-binding for the prefect-worker. In some cases, from security or permission concerns, there wouldn't be a permission to create these (i.e. role or role-binding). In this pr added two variables that control the creation of these objects. In cases where these objects are not created we would simply bind a different service account or an existing role-binding to the created service account.