这是indexloc提供的服务,不要输入任何密码
Skip to content

Check the ClusterDomainClaim before creating kcert. #12080

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

Merged
merged 1 commit into from
Oct 5, 2021

Conversation

mattmoor
Copy link
Member

@mattmoor mattmoor commented Oct 4, 2021

I unfortunately ran afoul of a change in the default behavior where
DomainMapping stopped creating ClusterDomainClaim by default, and
I unfortunately had auto-TLS enabled, and before I could enable this
creation, my Let's Encrypt quota for the week had been exhausted.

It seems like the best course all around is to verify the domain has
been claimed before we direct kcert to try provisioning a certificate,
which will otherwise 404.

cc @tcnghia (who I believe added this)

/assign @dprotaso @julz

FWIW, I believe that after this lands, we should /cherrypick to supported releases.

Fixes an issue where TLS certificates are requested before domain-ownership is established.

I unfortunately ran afoul of a change in the default behavior where
`DomainMapping` stopped creating `ClusterDomainClaim` by default, and
I unfortunately had auto-TLS enabled, and before I could enable this
creation, my Let's Encrypt quota for the week had been exhausted.

It seems like the best course all around is to verify the domain has
been claimed before we direct `kcert` to try provisioning a certificate,
which will otherwise 404.
@google-cla google-cla bot added the cla: yes Indicates the PR's author has signed the CLA. label Oct 4, 2021
@knative-prow-robot knative-prow-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. area/API API objects and controllers labels Oct 4, 2021
@codecov
Copy link

codecov bot commented Oct 5, 2021

Codecov Report

Merging #12080 (fc722f0) into main (20be262) will decrease coverage by 0.04%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main   #12080      +/-   ##
==========================================
- Coverage   87.48%   87.44%   -0.05%     
==========================================
  Files         196      196              
  Lines        9534     9534              
==========================================
- Hits         8341     8337       -4     
- Misses        920      922       +2     
- Partials      273      275       +2     
Impacted Files Coverage Δ
pkg/reconciler/domainmapping/reconciler.go 92.10% <100.00%> (ø)
pkg/reconciler/configuration/configuration.go 84.61% <0.00%> (-1.54%) ⬇️
pkg/autoscaler/statforwarder/leases.go 75.53% <0.00%> (-1.44%) ⬇️

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 20be262...fc722f0. Read the comment docs.

@mattmoor
Copy link
Member Author

mattmoor commented Oct 5, 2021

Pretty sure the failure is a known flake.

Copy link
Member

@julz julz 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

Thanks for catching this @mattmoor !

/cherry-pick 0.26
/cherry-pick 0.25
/cherry-pick 0.24
/cherry-pick 0.23

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

[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 Oct 5, 2021
@julz
Copy link
Member

julz commented Oct 5, 2021

/cherry-pick release-0.26

@knative-prow-robot
Copy link
Contributor

@julz: once the present PR merges, I will cherry-pick it on top of release-0.26 in a new PR and assign it to you.

In response to this:

/cherry-pick release-0.26
/cherry-pick release-0.25
/cherry-pick release-0.24
/cherry-pick release-0.23

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@julz
Copy link
Member

julz commented Oct 5, 2021

/cherry-pick release-0.25

@knative-prow-robot
Copy link
Contributor

@julz: once the present PR merges, I will cherry-pick it on top of release-0.25 in a new PR and assign it to you.

In response to this:

/cherry-pick release-0.25

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@julz
Copy link
Member

julz commented Oct 5, 2021

/cherry-pick release-0.24

@knative-prow-robot
Copy link
Contributor

@julz: once the present PR merges, I will cherry-pick it on top of release-0.24 in a new PR and assign it to you.

In response to this:

/cherry-pick release-0.24

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@julz
Copy link
Member

julz commented Oct 5, 2021

/cherry-pick release-0.23

@knative-prow-robot
Copy link
Contributor

@julz: once the present PR merges, I will cherry-pick it on top of release-0.23 in a new PR and assign it to you.

In response to this:

/cherry-pick release-0.23

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@knative-prow-robot
Copy link
Contributor

@julz: new pull request created: #12082

In response to this:

/cherry-pick release-0.26

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@knative-prow-robot
Copy link
Contributor

@julz: new pull request created: #12083

In response to this:

/cherry-pick release-0.25

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@knative-prow-robot
Copy link
Contributor

@julz: new pull request created: #12084

In response to this:

/cherry-pick release-0.24

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@knative-prow-robot
Copy link
Contributor

@julz: new pull request created: #12085

In response to this:

/cherry-pick release-0.23

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@mattmoor mattmoor deleted the domain-mapping-cdc branch October 5, 2021 14:56
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. area/API API objects and controllers cla: yes Indicates the PR's author has signed the CLA. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants