-
Notifications
You must be signed in to change notification settings - Fork 1.8k
OCPBUGS-55069:updates RBAC for UDN #92273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,11 +8,10 @@ | |
|
||
The following procedure creates a `UserDefinedNetwork` CR that is namespace scoped. Based upon your use case, create your request by using either the `my-layer-two-udn.yaml` example for a `Layer2` topology type or the `my-layer-three-udn.yaml` example for a `Layer3` topology type. | ||
|
||
//We won't have these pieces till GA in 4.18. | ||
//[NOTE] | ||
//==== | ||
//If any cluster default networked pods exist before the user-defined network is created, any further pods created in this namespace will return an error message: `What_is_this`? | ||
//==== | ||
.Perquisites | ||
|
||
* You have logged in with `cluster-admin` privileges, or you have `view` and `edit` role-based access control (RBAC). | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wouldn't saying "you have We have added cluster-roles with aggregation to |
||
|
||
|
||
.Procedure | ||
|
||
|
@@ -24,7 +23,7 @@ $ cat << EOF | oc apply -f - | |
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: <udn_namespace_name> | ||
name: <udn_namespace_name> | ||
labels: | ||
k8s.ovn.org/primary-user-defined-network: "" | ||
EOF | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can squeeze this somehow here
admin or view & edit roles in the subject namespace.
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The only reason I didn't add the namespace specificity is because the first step of creating a UDN is to create a namespace so I thought we were covered. Also, all of those roles would be able to create namespaces.