Skip to content

Commit 49ea82a

Browse files
Fix #6776: Add namespaced RBAC and list/watch permissions for namespaces, update docs
1 parent cf0032c commit 49ea82a

5 files changed

Lines changed: 35 additions & 0 deletions

File tree

‎docs/modules/ROOT/pages/configuration/integrationprofiles.adoc‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,21 @@ metadata:
6161

6262
Any Integration created in `my-team` without an explicit profile annotation will automatically use `my-team-profile`.
6363

64+
NOTE: The administrator must also create the `IntegrationProfile` named `my-team-profile` in that namespace. If it does not exist, the operator will fail to resolve the profile and report an error. For example:
65+
66+
[source,yaml]
67+
----
68+
kind: IntegrationProfile
69+
apiVersion: camel.apache.org/v1
70+
metadata:
71+
name: my-team-profile
72+
namespace: my-team
73+
spec:
74+
traits:
75+
camel:
76+
runtimeProvider: plain-quarkus
77+
----
78+
6479
== Default Profile Convention
6580

6681
Alternatively, an administrator can simply create an `IntegrationProfile` named `default` in the namespace:

‎helm/camel-k/templates/rbacs-descoped.yaml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ rules:
8989
- namespaces
9090
verbs:
9191
- get
92+
- list
93+
- watch
9294
- apiGroups:
9395
- ""
9496
resources:

‎helm/camel-k/templates/rbacs-namespaced.yaml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,14 @@ rules:
8383
- get
8484
- list
8585
- watch
86+
- apiGroups:
87+
- ""
88+
resources:
89+
- namespaces
90+
verbs:
91+
- get
92+
- list
93+
- watch
8694
- apiGroups:
8795
- ""
8896
resources:

‎pkg/resources/config/rbac/descoped/operator-cluster-role.yaml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ rules:
8989
- namespaces
9090
verbs:
9191
- get
92+
- list
93+
- watch
9294
- apiGroups:
9395
- ""
9496
resources:

‎pkg/resources/config/rbac/namespaced/operator-role.yaml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,14 @@ rules:
8383
- get
8484
- list
8585
- watch
86+
- apiGroups:
87+
- ""
88+
resources:
89+
- namespaces
90+
verbs:
91+
- get
92+
- list
93+
- watch
8694
- apiGroups:
8795
- ""
8896
resources:

0 commit comments

Comments
 (0)