Skip to content

Commit

Permalink
Merge pull request openshift#3172 from isco-rodriguez/updateCNORbacCa…
Browse files Browse the repository at this point in the history
…lico

OCPBUGS-23083: adding permission to CNO RBAC Calico path for network-node-identity deploy
  • Loading branch information
openshift-merge-bot[bot] authored Nov 10, 2023
2 parents 22647f6 + 3dabd46 commit 68990cd
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 68990cd

Please sign in to comment.