Skip to content

Commit

Permalink
adding permission to CNO RBAC Calico path for network-node-identity d…
Browse files Browse the repository at this point in the history
…eploy
  • Loading branch information
isco-rodriguez committed Nov 7, 2023
1 parent e2801bd commit 3dabd46
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,20 @@ func ReconcileRole(role *rbacv1.Role, ownerRef config.OwnerRef, networkType hype
"watch",
},
},
{
APIGroups: []string{corev1.SchemeGroupVersion.Group},
Resources: []string{
"configmaps",
},
ResourceNames: []string{
"ovnkube-identity-cm",
},
Verbs: []string{
"create",
"patch",
"update",
},
},
{
APIGroups: []string{appsv1.SchemeGroupVersion.Group},
Resources: []string{"statefulsets", "deployments"},
Expand All @@ -162,6 +176,7 @@ func ReconcileRole(role *rbacv1.Role, ownerRef config.OwnerRef, networkType hype
Resources: []string{"deployments"},
ResourceNames: []string{
"multus-admission-controller",
"network-node-identity",
},
Verbs: []string{"*"},
},
Expand All @@ -170,6 +185,7 @@ func ReconcileRole(role *rbacv1.Role, ownerRef config.OwnerRef, networkType hype
Resources: []string{"services"},
ResourceNames: []string{
"multus-admission-controller",
"network-node-identity",
},
Verbs: []string{"*"},
},
Expand Down

0 comments on commit 3dabd46

Please sign in to comment.