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

Prefactor: extract auth provider configuration reconciliation to dedicated function in fleetshard central reconciler #1057

Conversation

rhybrillou
Copy link
Contributor

Description

Checklist (Definition of Done)

  • Unit and integration tests added
  • Added test description under Test manual
  • Documentation added if necessary (i.e. changes to dev setup, test execution, ...)
  • CI and all relevant tests are passing
  • Add the ticket number to the PR title if available, i.e. ROX-12345: ...
  • Discussed security and business related topics privately. Will move any security and business related topics that arise to private communication channel.
  • Add secret to app-interface Vault or Secrets Manager if necessary

Test manual

TODO: Add manual testing efforts

# To run tests locally run:
make db/teardown db/setup db/migrate
make ocm/setup OCM_OFFLINE_TOKEN=<ocm-offline-token> OCM_ENV=development
make verify lint binary test test/integration

@openshift-ci
Copy link
Contributor

openshift-ci bot commented May 25, 2023

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

Copy link
Member

@SimonBaeumer SimonBaeumer left a comment

Choose a reason for hiding this comment

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

.

@@ -303,6 +289,31 @@ func (r *CentralReconciler) Reconcile(ctx context.Context, remoteCentral private
return status, nil
}

func (r *CentralReconciler) reconcileAuthProviderConfig(ctx context.Context, remoteCentral private.ManagedCentral, central *v1alpha1.Central) error {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
func (r *CentralReconciler) reconcileAuthProviderConfig(ctx context.Context, remoteCentral private.ManagedCentral, central *v1alpha1.Central) error {
func (r *CentralReconciler) reconcileAuthProviderConfig(ctx context.Context, *remoteCentral private.ManagedCentral, central *v1alpha1.Central) error {

@rhybrillou rhybrillou force-pushed the yann/prefactor_restructure_reconcile_loop_cr_removal_reconciliation branch from 9790f3c to 2c21c13 Compare June 12, 2023 16:31
@rhybrillou rhybrillou force-pushed the yann/prefactor_restructure_reconcile_loop_auth_provider_config_reconciliation branch from 8b89d0f to 5290664 Compare June 12, 2023 16:31
@rhybrillou rhybrillou force-pushed the yann/prefactor_restructure_reconcile_loop_cr_removal_reconciliation branch from 2c21c13 to 853df7a Compare June 13, 2023 07:04
@rhybrillou rhybrillou force-pushed the yann/prefactor_restructure_reconcile_loop_auth_provider_config_reconciliation branch from 5290664 to d02a3ef Compare June 13, 2023 07:04
@rhybrillou rhybrillou temporarily deployed to development June 13, 2023 07:04 — with GitHub Actions Inactive
@rhybrillou rhybrillou temporarily deployed to development June 13, 2023 07:04 — with GitHub Actions Inactive
@rhybrillou rhybrillou force-pushed the yann/prefactor_restructure_reconcile_loop_cr_removal_reconciliation branch 2 times, most recently from 395c735 to 8d904dc Compare June 13, 2023 15:22
@rhybrillou rhybrillou force-pushed the yann/prefactor_restructure_reconcile_loop_auth_provider_config_reconciliation branch from d02a3ef to 4023bb9 Compare June 13, 2023 15:34
@rhybrillou rhybrillou temporarily deployed to development June 13, 2023 15:34 — with GitHub Actions Inactive
@rhybrillou rhybrillou temporarily deployed to development June 13, 2023 15:34 — with GitHub Actions Inactive
@rhybrillou rhybrillou temporarily deployed to development June 13, 2023 15:35 — with GitHub Actions Inactive
@rhybrillou rhybrillou force-pushed the yann/prefactor_restructure_reconcile_loop_cr_removal_reconciliation branch from 8d904dc to 078e748 Compare June 19, 2023 15:30
Base automatically changed from yann/prefactor_restructure_reconcile_loop_cr_removal_reconciliation to main June 19, 2023 16:19
@rhybrillou rhybrillou force-pushed the yann/prefactor_restructure_reconcile_loop_auth_provider_config_reconciliation branch from 4023bb9 to 5f96a9f Compare June 19, 2023 16:21
@openshift-ci openshift-ci bot removed the lgtm label Jun 19, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jun 19, 2023

New changes are detected. LGTM label has been removed.

@rhybrillou rhybrillou temporarily deployed to development June 19, 2023 16:21 — with GitHub Actions Inactive
@rhybrillou rhybrillou temporarily deployed to development June 19, 2023 16:21 — with GitHub Actions Inactive
@rhybrillou rhybrillou temporarily deployed to development June 19, 2023 16:21 — with GitHub Actions Inactive
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jun 19, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rhybrillou, SimonBaeumer

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

@rhybrillou rhybrillou merged commit 0f22a95 into main Jun 19, 2023
@rhybrillou rhybrillou deleted the yann/prefactor_restructure_reconcile_loop_auth_provider_config_reconciliation branch June 19, 2023 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants