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

🐛 Update ClusterCertificateRotated to false if the signer name is invalid #507

Merged

Conversation

zhujian7
Copy link
Member

@zhujian7 zhujian7 commented Jun 7, 2024

Summary

Update ClusterCertificateRotated to false if the signer name is invalid, i.e:

  - lastTransitionTime: "2024-06-07T08:11:10Z"
    message: 'Failed to create CSR CertificateSigningRequest.certificates.k8s.io "addon-cluster1-hello-template-rlmsp"
      is invalid: spec.signerName: Invalid value: "xxx-addon": must be a fully qualified
      domain and path of the form ''example.com/signer-name'''
    reason: ClientCertificateUpdateFailed
    status: "False"
    type: ClusterCertificateRotated

Related issue(s)

Fixes ##382

@openshift-ci openshift-ci bot requested review from skeeey and xuezhaojun June 7, 2024 08:17
@zhujian7
Copy link
Member Author

zhujian7 commented Jun 7, 2024

/cc @qiujian16 @skeeey

@openshift-ci openshift-ci bot requested a review from qiujian16 June 7, 2024 08:17
@zhujian7
Copy link
Member Author

zhujian7 commented Jun 7, 2024

/cc @elgnay

@openshift-ci openshift-ci bot requested a review from elgnay June 7, 2024 08:19
Copy link

codecov bot commented Jun 7, 2024

Codecov Report

Attention: Patch coverage is 28.57143% with 15 lines in your changes missing coverage. Please review.

Project coverage is 62.18%. Comparing base (9b36e11) to head (8bb0a70).

Files Patch % Lines
pkg/registration/clientcert/cert_controller.go 28.57% 11 Missing and 4 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #507      +/-   ##
==========================================
- Coverage   62.21%   62.18%   -0.04%     
==========================================
  Files         141      141              
  Lines       11769    11780      +11     
==========================================
+ Hits         7322     7325       +3     
- Misses       3675     3683       +8     
  Partials      772      772              
Flag Coverage Δ
unit 62.18% <28.57%> (-0.04%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@elgnay
Copy link
Contributor

elgnay commented Jun 7, 2024

/lgtm

@qiujian16
Copy link
Member

/approve

Copy link
Contributor

openshift-ci bot commented Jun 11, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: qiujian16, zhujian7

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

@openshift-merge-bot openshift-merge-bot bot merged commit b38dc2c into open-cluster-management-io:main Jun 11, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants