-
Notifications
You must be signed in to change notification settings - Fork 78
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
Add Namespace field to ClusterDomainClaim #326
Conversation
This field has two purposes: - It replaces the ownerReference for ensuring that only one DomainMapping can use a ClusterDomainClaim at a time. This avoids a cross-namespace ownerReference, which isn't supported. - It allows Cluster Operators to delegate a particular domain name to a namespace, allowing that namespace to create DomainMappings with a particular name (and preventing other namespaces squatting or intercepting the name).
Codecov Report
@@ Coverage Diff @@
## master #326 +/- ##
=======================================
Coverage 95.09% 95.09%
=======================================
Files 38 38
Lines 815 815
=======================================
Hits 775 775
Misses 29 29
Partials 11 11 Continue to review full report at Codecov.
|
// Namespace is the namespace which is allowed to create a DomainMapping | ||
// using this ClusterDomainClaim's name. | ||
Namespace string `json:"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.
We should think about requiring this next release.
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.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: julz, mattmoor 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 |
Changes
Spec.Namespace
toClusterDomainClaim
.This field has two purposes:
DomainMapping can use a ClusterDomainClaim at a time. This avoids
using cross-namespace ownerReferences, which aren't supported.
namespace, allowing that namespace (and no other) to create DomainMappings
with a particular name (thereby preventing other namespaces squatting on or
intercepting the name).
/kind enhancement
First part of knative/serving#10477 (and also to enable multi-tenant use of DomainMapping, see knative/serving#9713).
Release Note
/assign @mattmoor @tcnghia