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

✨ support singleton in hosted mode #258

Conversation

qiujian16
Copy link
Member

Summary

Related issue(s)

Fixes #

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 28, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: qiujian16

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

@qiujian16 qiujian16 force-pushed the handle-upgrade branch 2 times, most recently from 2c8e8ad to 16d4e9c Compare August 30, 2023 02:05
@codecov
Copy link

codecov bot commented Aug 30, 2023

Codecov Report

Patch coverage: 72.09% and project coverage change: -0.01% ⚠️

Comparison is base (7adf6ee) 60.71% compared to head (0b7a2b9) 60.70%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #258      +/-   ##
==========================================
- Coverage   60.71%   60.70%   -0.01%     
==========================================
  Files         128      128              
  Lines       13666    13676      +10     
==========================================
+ Hits         8297     8302       +5     
- Misses       4603     4608       +5     
  Partials      766      766              
Flag Coverage Δ
unit 60.70% <72.09%> (-0.01%) ⬇️

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

Files Changed Coverage Δ
...rmanagercontroller/clustermanager_hub_reconcile.go 50.74% <0.00%> (ø)
...agercontroller/clustermanager_runtime_reconcile.go 50.42% <0.00%> (ø)
...sterletcontroller/klusterlet_cleanup_controller.go 55.10% <50.00%> (ø)
...usterletcontroller/klusterlet_managed_reconcile.go 52.88% <50.00%> (ø)
...usterletcontroller/klusterlet_runtime_reconcile.go 56.54% <70.37%> (-1.22%) ⬇️
pkg/operator/helpers/helpers.go 61.66% <100.00%> (+0.15%) ⬆️
pkg/operator/helpers/queuekey.go 84.00% <100.00%> (ø)
...controllers/klusterletcontroller/client_builder.go 57.77% <100.00%> (ø)
...lers/klusterletcontroller/klusterlet_controller.go 67.25% <100.00%> (+0.14%) ⬆️
...terletcontroller/klusterlet_management_recocile.go 52.45% <100.00%> (ø)

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

@qiujian16 qiujian16 force-pushed the handle-upgrade branch 5 times, most recently from 73b26bf to a72fd54 Compare September 4, 2023 07:03
@qiujian16 qiujian16 changed the title 🐛 delete old agent when switch to singleton mode ✨ support singleton in hosted mode Sep 4, 2023
Signed-off-by: Jian Qiu <jqiu@redhat.com>
Signed-off-by: Jian Qiu <jqiu@redhat.com>
{{if eq .InstallMode "SingletonHosted"}}
- name: spoke-kubeconfig-secret
secret:
secretName: {{ .ExternalManagedKubeConfigWorkSecret }}
Copy link
Member

Choose a reason for hiding this comment

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

for singletonHosted mode, will it still generate two(external registration/work) secrets? why use the work secret here?

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah, it is a bit confusing. Updated and add some comment.

Signed-off-by: Jian Qiu <jqiu@redhat.com>
@zhujian7
Copy link
Member

zhujian7 commented Sep 6, 2023

/lgtm
/hold for @elgnay to review.
/assign @elgnay

@elgnay
Copy link
Contributor

elgnay commented Sep 7, 2023

/LGTM
/unhold

@openshift-merge-robot openshift-merge-robot merged commit 404680d into open-cluster-management-io:main Sep 7, 2023
12 checks passed
@qiujian16 qiujian16 deleted the handle-upgrade branch September 7, 2023 01: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.

4 participants