-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
Document owner ref restrictions explicitly #12543
Conversation
/lgtm |
Deploy preview for kubernetes-io-master-staging ready! Built with commit 45ea92b https://deploy-preview-12543--kubernetes-io-master-staging.netlify.com |
Thanks! Can we also update the type so that the generated API doc, like this here, also has this information? |
@@ -60,6 +60,12 @@ metadata: | |||
... | |||
``` | |||
|
|||
{{< note >}} | |||
Owner references allow resources in the same namespace as the dependents, or | |||
cluster-scoped resources. However, cross-namespace owner references is |
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.
Is this the same as:
Owner references allow resources and dependents to share the same namespace(s) OR
Owner references allow resources in the same namespace as their dependents
{{< note >}} | ||
Owner references allow resources in the same namespace as the dependents, or | ||
cluster-scoped resources. However, cross-namespace owner references is | ||
disallowed by design. |
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.
Is this more clear:
Cluster-scoped owner may have namespaced dependents or cluster-scoped dependents.
Namespaced owner may only have namespaced dependents in the same 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.
I rephrased it to write it from dependents' perspective, because owner refs is written in dependents' metadata, not owners'.
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.
👍
ccec53f
to
351922b
Compare
1e30dbd
to
fc4b8b7
Compare
fc4b8b7
to
45ea92b
Compare
/lgtm |
/assign @steveperry-53 Please take a look and state your approval. |
/approve |
1 similar comment
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: zhangxiaoyu-zidif, zparnold The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This is not a new feature, just an undocumented old behavior.
cc @caesarxuchao @liggitt