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

fix manager do not recreted after delete manager deploy #1252

Merged
merged 1 commit into from
Dec 3, 2024

Conversation

ldpliu
Copy link
Contributor

@ldpliu ldpliu commented Nov 29, 2024

Summary

When operator restart, the transport connection is null, so the controllers(manager) which depend on the transport connection will not be start. But when transport connection is set, the kafka component status in mgh is not updated, so controller-runtime will not trigger reconcile to start manager controller.
In this pr, we update the kafka component status in mgh when transport connection set.
The storage connection has the same problem, so we do it as the same way.

Related issue(s)

Fixes #

Tests

  • Unit/function tests have been added and incorporated into make unit-tests.
  • Integration tests have been added and incorporated into make integration-test.
  • E2E tests have been added and incorporated into make e2e-test-all.
  • List other manual tests you have done.

@ldpliu ldpliu changed the title fix manager de not recreted after delete manager deploy fix manager do not recreted after delete manager deploy Nov 29, 2024
@@ -249,6 +250,7 @@ var secretPred = predicate.Funcs{
}

func (r *GrafanaReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
log.Infof("reconcile grafana controller")
Copy link
Contributor

Choose a reason for hiding this comment

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

use debug instead

@@ -61,6 +61,8 @@ func ReadyToEnableAddonManager(mgh *v1alpha4.MulticlusterGlobalHub) bool {
}

func StartAddonManagerController(initOption config.ControllerOption) (config.ControllerInterface, error) {
log.Info("start acm controller")
Copy link
Contributor

Choose a reason for hiding this comment

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

addon manager

@ldpliu
Copy link
Contributor Author

ldpliu commented Dec 3, 2024

/retest

@ldpliu
Copy link
Contributor Author

ldpliu commented Dec 3, 2024

/test test-integration

Copy link
Contributor

@clyang82 clyang82 left a comment

Choose a reason for hiding this comment

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

LGTM

@openshift-ci openshift-ci bot added the lgtm label Dec 3, 2024
Copy link

openshift-ci bot commented Dec 3, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: clyang82, ldpliu

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-ci openshift-ci bot added the approved label Dec 3, 2024
@clyang82 clyang82 merged commit 09856c1 into stolostron:main Dec 3, 2024
14 checks passed
Copy link

openshift-ci bot commented Dec 3, 2024

@ldpliu: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/test-integration 9dec916 link unknown /test test-integration

Full PR test history. Your PR dashboard.

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-sigs/prow repository. I understand the commands that are listed here.

Copy link

sonarcloud bot commented Dec 3, 2024

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