-
Notifications
You must be signed in to change notification settings - Fork 94
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
🐛 Failed to sync sa work-controller-sa in cluster manger hosted mode #223
🐛 Failed to sync sa work-controller-sa in cluster manger hosted mode #223
Conversation
Signed-off-by: zhujian <jiazhu@redhat.com>
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## main #223 +/- ##
==========================================
- Coverage 60.26% 60.22% -0.04%
==========================================
Files 130 130
Lines 13494 13502 +8
==========================================
Hits 8132 8132
- Misses 4611 4619 +8
Partials 751 751
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
Signed-off-by: zhujian <jiazhu@redhat.com>
@@ -55,7 +55,8 @@ type clusterManagerController struct { | |||
cache resourceapply.ResourceCache | |||
// For testcases which don't need these functions, we could set fake funcs | |||
ensureSAKubeconfigs func(ctx context.Context, clusterManagerName, clusterManagerNamespace string, | |||
hubConfig *rest.Config, hubClient, managementClient kubernetes.Interface, recorder events.Recorder) error | |||
hubConfig *rest.Config, hubClient, managementClient kubernetes.Interface, recorder events.Recorder, | |||
mwctrEnabled, addonManagerEnabled bool) error |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we just use features? it is global variable, we do not need them as input
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for hosted mode, there might be multiple clusterManager CRs, if they have different feature gate settings, I don't think using the global variable is appropriate.
also I think we need to enhance the integration test for this bug? |
Signed-off-by: zhujian <jiazhu@redhat.com>
/approve |
[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 |
Summary
cluster-manager logs:
add permission for cluster manager to get secret
addon-manager-controller-sa-kubeconfig
fix flaky integration test
Related issue(s)
Fixes #