Skip to content

Commit 7edfbc2

Browse files
committed
Expanded comment on build_rbac_resources a bit.
1 parent ad2dd70 commit 7edfbc2

File tree

1 file changed

+6
-0
lines changed
  • crates/stackable-operator/src/commons

1 file changed

+6
-0
lines changed

crates/stackable-operator/src/commons/rbac.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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.
3339
pub fn build_rbac_resources<T: Clone + Resource<DynamicType = ()>>(
3440
resource: &T,
3541
rbac_prefix: &str,

0 commit comments

Comments
 (0)