File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
crates/stackable-operator/src/commons Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,12 @@ pub enum Error {
3030/// Build RBAC objects for the product workloads.
3131/// The `rbac_prefix` is meant to be the product name, for example: zookeeper, airflow, etc.
3232/// and it is a assumed that a ClusterRole named `{rbac_prefix}-clusterrole` exists.
33+ /// 'rbac_prefix' is not used to build the names of the serviceAccount and roleBinding objects,
34+ /// as this caused problems with multiple clusters of the same product within the same namespace
35+ /// (https://stackable.atlassian.net/browse/SUP-148).
36+ /// Instead the names for these objects are created by reading the name from the cluster object
37+ /// and appending [-rolebinding|-serviceaccount] to create unique names instead of using the
38+ /// same objects for multiple clusters.
3339pub fn build_rbac_resources < T : Clone + Resource < DynamicType = ( ) > > (
3440 resource : & T ,
3541 rbac_prefix : & str ,
You can’t perform that action at this time.
0 commit comments