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

✨ Retrigger CSR when certs doesn't has desired org and ou of subject(registrationConfig). #377

Conversation

xuezhaojun
Copy link
Member

Summary

Before: the CSR only be retriggerred when subject.CommonName doesn't match.

Now: if there is no certs match subject (commonnam + org + ou) , CSR get retriggered.

@openshift-ci openshift-ci bot requested review from elgnay and skeeey March 13, 2024 15:41
Copy link

codecov bot commented Mar 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 61.41%. Comparing base (b4bf3d0) to head (fcace39).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #377      +/-   ##
==========================================
+ Coverage   61.37%   61.41%   +0.03%     
==========================================
  Files         132      132              
  Lines       14051    14064      +13     
==========================================
+ Hits         8624     8637      +13     
- Misses       4672     4673       +1     
+ Partials      755      754       -1     
Flag Coverage Δ
unit 61.41% <100.00%> (+0.03%) ⬆️

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.

@xuezhaojun
Copy link
Member Author

/assign @qiujian16

}

// check groups(origanization)
if len(subject.Organization) > 0 {
Copy link
Member

Choose a reason for hiding this comment

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

why not just deepEqual?

Copy link
Member Author

Choose a reason for hiding this comment

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

Agree, updated.

@xuezhaojun xuezhaojun force-pushed the trigger-csr-when-subject-groups-or-ou-change branch 2 times, most recently from 3016c19 to d644f18 Compare March 14, 2024 01:58
@xuezhaojun xuezhaojun requested a review from qiujian16 March 14, 2024 06:13
Signed-off-by: GitHub <noreply@github.com>
@xuezhaojun xuezhaojun force-pushed the trigger-csr-when-subject-groups-or-ou-change branch from 4041177 to fcace39 Compare March 14, 2024 06:45
Copy link
Member

@qiujian16 qiujian16 left a comment

Choose a reason for hiding this comment

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

/approve
/lgtm

@openshift-ci openshift-ci bot added the lgtm label Mar 14, 2024
Copy link
Contributor

openshift-ci bot commented Mar 14, 2024

[APPROVALNOTIFIER] This PR is APPROVED

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

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 edef33d into open-cluster-management-io:main Mar 14, 2024
13 checks passed
@xuezhaojun xuezhaojun deleted the trigger-csr-when-subject-groups-or-ou-change branch March 14, 2024 08:53
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.

2 participants