Skip to content

Commit e000b73

Browse files
committed
remove legacy service account binding
1 parent 2bba315 commit e000b73

File tree

1 file changed

+6
-20
lines changed

1 file changed

+6
-20
lines changed

rust/operator-binary/src/hdfs_clusterrolebinding_nodes_controller.rs

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -73,26 +73,12 @@ pub async fn reconcile(
7373
}
7474
})
7575
.flat_map(|(meta, sa_name)| {
76-
let mut result = vec![
77-
Subject {
78-
kind: "ServiceAccount".to_string(),
79-
name: sa_name,
80-
namespace: meta.namespace.clone(),
81-
..Subject::default()
82-
},
83-
// This extra Serviceaccount is being written for legacy/compatibility purposes
84-
// to ensure that running clusters don't lose access to anything during an upgrade
85-
// of the Stackable operators, this code can be removed in later releases
86-
// The value is hardcoded here, as we have removed access to the private fns that
87-
// would have built it, since this is a known target though, and will be removed soon
88-
// this should not be an issue.
89-
Subject {
90-
kind: "ServiceAccount".to_string(),
91-
name: "hdfs-serviceaccount".to_string(),
92-
namespace: meta.namespace.clone(),
93-
..Subject::default()
94-
},
95-
];
76+
let mut result = vec![Subject {
77+
kind: "ServiceAccount".to_string(),
78+
name: sa_name,
79+
namespace: meta.namespace.clone(),
80+
..Subject::default()
81+
}];
9682
// If a cluster is called hdfs this would result in the same subject
9783
// being written twicex.
9884
// Since we know this vec only contains two elements we can use dedup for

0 commit comments

Comments
 (0)