Skip to content

disable grc in global hub.#450

Merged
openshift-merge-robot merged 4 commits into
stolostron:mainfrom
morvencao:br_disable_grc_in_global_hub
May 25, 2023
Merged

disable grc in global hub.#450
openshift-merge-robot merged 4 commits into
stolostron:mainfrom
morvencao:br_disable_grc_in_global_hub

Conversation

@morvencao
Copy link
Copy Markdown
Contributor

@morvencao morvencao commented May 24, 2023

@morvencao morvencao force-pushed the br_disable_grc_in_global_hub branch 3 times, most recently from 0228b55 to 55ceafe Compare May 25, 2023 02:14
morvencao added 2 commits May 25, 2023 02:43
Signed-off-by: morvencao <lcao@redhat.com>
Signed-off-by: morvencao <lcao@redhat.com>
@morvencao morvencao force-pushed the br_disable_grc_in_global_hub branch from 85365ce to 135e486 Compare May 25, 2023 02:44
@morvencao morvencao force-pushed the br_disable_grc_in_global_hub branch 4 times, most recently from 3fff993 to 37c5b97 Compare May 25, 2023 06:37
Signed-off-by: morvencao <lcao@redhat.com>
@morvencao morvencao force-pushed the br_disable_grc_in_global_hub branch from 37c5b97 to 4f73abf Compare May 25, 2023 06:45
@morvencao morvencao requested review from clyang82 and yanmxa May 25, 2023 07:00
return mch, grcDisabledByMGH
}

func getMCH(ctx context.Context, k8sClient client.Client) (*mchv1.MultiClusterHub, error) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

There has a function to getMCH has been implemented before. Maybe we can just keep one of these to the pkg.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

they are not exactly the same.

func (r *MulticlusterGlobalHubReconciler) reconcileMCH(ctx context.Context,
mgh *operatorv1alpha2.MulticlusterGlobalHub,
) error {
mch, err := getMCH(ctx, r.Client)
Copy link
Copy Markdown
Contributor

@yanmxa yanmxa May 25, 2023

Choose a reason for hiding this comment

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

if the mch is nil, Is it better to skip the following logic? if so, the e2e will not need to install the fake mch.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

Signed-off-by: morvencao <lcao@redhat.com>
@sonarqubecloud
Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

87.5% 87.5% Coverage
0.0% 0.0% Duplication

@yanmxa
Copy link
Copy Markdown
Contributor

yanmxa commented May 25, 2023

/lgtm

@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented May 25, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: morvencao, yanmxa

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details 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

@yanmxa
Copy link
Copy Markdown
Contributor

yanmxa commented May 25, 2023

/unhold

@openshift-merge-robot openshift-merge-robot merged commit d1cef78 into stolostron:main May 25, 2023
@morvencao morvencao deleted the br_disable_grc_in_global_hub branch May 25, 2023 14:10
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