Skip to content

Commit b0e5e4a

Browse files
fix: rbac (#233)
* chore(drive-by): turn a static into const * feat: add permission to get namespaces on the management cluster
1 parent 3a61c9f commit b0e5e4a

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

manifests/clusterrole.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,11 @@ rules:
4646
- patch
4747
- update
4848
- watch
49+
- apiGroups:
50+
- ""
51+
resources:
52+
- namespaces
53+
verbs:
54+
- get
55+
- list
56+
- watch

src/controller.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ use crate::resource_extensions::NamespacedApi;
2626
use crate::resources::ResourceSyncStatus;
2727
use crate::{requeue_after, resources::ResourceSync, util, Error, Result, FINALIZER};
2828

29-
static RESOURCE_SYNC_FAILING_CONDITION: &str = "ResourceSyncFailing";
29+
const RESOURCE_SYNC_FAILING_CONDITION: &str = "ResourceSyncFailing";
3030

3131
pub struct Context {
3232
pub client: Client,

0 commit comments

Comments
 (0)