Skip to content
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 config to disable auto-creation of domain claims #330

Merged
merged 1 commit into from
Jan 12, 2021

Conversation

julz
Copy link
Member

@julz julz commented Jan 12, 2021

Changes

  • 🎁 Adds autocreateClusterDomainClaims flag to network configmap.

    Used to disable automatic claiming of domain names in favour of explicit delegation of domain name ownership to namespaces via the spec.Namespace field of ClusterDomainClaim (this is important for multi-tenant environments which need to prevent 'squatting' or 'intercepting' domain names used in other namespaces but exposed via the shared ingress).

/kind enhancement

Release Note

Adds `autocreateClusterDomainClaims` flag to network config map.

/assign @mattmoor @tcnghia

@google-cla google-cla bot added the cla: yes Indicates the PR's author has signed the CLA. label Jan 12, 2021
@knative-prow-robot knative-prow-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jan 12, 2021
@codecov
Copy link

codecov bot commented Jan 12, 2021

Codecov Report

Merging #330 (7904cc6) into master (c30dc94) will increase coverage by 0.21%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #330      +/-   ##
==========================================
+ Coverage   95.09%   95.30%   +0.21%     
==========================================
  Files          38       37       -1     
  Lines         815      767      -48     
==========================================
- Hits          775      731      -44     
+ Misses         29       25       -4     
  Partials       11       11              
Impacted Files Coverage Δ
pkg/network.go 83.83% <100.00%> (+0.33%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3a89509...7904cc6. Read the comment docs.

Copy link
Member

@mattmoor mattmoor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/approve

@@ -116,6 +116,10 @@ const (
// constructing the Knative Route's tag names.
DefaultTagTemplate = "{{.Tag}}-{{.Name}}"

// AutocreateClusterDomainClaimsKey is the key for the
// AutocreateClusterDomainClaims property.
AutocreateClusterDomainClaimsKey = "autocreateClusterDomainClaims"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like this name, but I don't have a better suggestion. 🤔

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same :(. If we can come up with something better before we make this "beta", that'd be nice.

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Jan 12, 2021
@knative-prow-robot
Copy link

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow-robot knative-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 12, 2021
@knative-prow-robot knative-prow-robot merged commit 4c4c237 into knative:master Jan 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cla: yes Indicates the PR's author has signed the CLA. kind/enhancement lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants