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

create StorageCluster peer token secret on the hub #228

Conversation

umangachapagain
Copy link
Contributor

No description provided.

Copy link
Contributor

openshift-ci bot commented Jul 22, 2024

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
Contributor

openshift-ci bot commented Jul 22, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: umangachapagain

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

addons/onboarding_token.go Outdated Show resolved Hide resolved
addons/onboarding_token.go Outdated Show resolved Hide resolved
addons/onboarding_token.go Outdated Show resolved Hide resolved
addons/onboarding_token.go Outdated Show resolved Hide resolved
addons/onboarding_token.go Outdated Show resolved Hide resolved
addons/onboarding_token.go Outdated Show resolved Hide resolved
addons/onboarding_token.go Outdated Show resolved Hide resolved
addons/onboarding_token.go Outdated Show resolved Hide resolved
addons/agent_mirrorpeer_controller.go Show resolved Hide resolved
@umangachapagain umangachapagain force-pushed the onboarding-token-exchange branch from 25fdcf2 to 4dc2459 Compare July 25, 2024 09:58
@umangachapagain umangachapagain marked this pull request as ready for review July 25, 2024 09:58
@umangachapagain umangachapagain requested a review from vbnrh August 1, 2024 05:19
@umangachapagain umangachapagain force-pushed the onboarding-token-exchange branch from d35c3d6 to 8d6500e Compare August 1, 2024 05:27
@umangachapagain umangachapagain force-pushed the onboarding-token-exchange branch from 8d6500e to e68c54f Compare August 1, 2024 05:30
Comment on lines +87 to +97
var odfOperatorNamespace string
if utils.HasRequiredODFKey(cluster) {
odfOperatorNamespacedName, err := utils.GetNamespacedNameForClusterInfo(*cluster)
if err != nil {
return objects, fmt.Errorf("error while getting ODF operator namespace on the spoke cluster %q. %w", cluster.Name, err)
}
odfOperatorNamespace = odfOperatorNamespacedName.Namespace
} else {
return objects, fmt.Errorf("error while getting ODF operator namespace on the spoke cluster %q. Expected ClusterClaim does not exist", cluster.Name)
}

Copy link
Member

@vbnrh vbnrh Aug 2, 2024

Choose a reason for hiding this comment

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

Why not just use addon.Spec.InstallNamespace ? We are always creating the addons in ODF's namespace

Copy link
Member

Choose a reason for hiding this comment

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

Even for Provider consumer cases, We will be doing the same. Fetching the namespace again would be redundant operation
https://github.com/red-hat-storage/odf-multicluster-orchestrator/pull/221/files#diff-71a31664c2a326d791c6040801a670cc01383300df3e4378f843bb619d2ea4e8R410-R440

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You are assuming that addon install namespace will be same as ODF operator namespace. That might not always be true. Instead I am allowing a way to change it dynamically.

Copy link
Member

Choose a reason for hiding this comment

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

@umanga I feel that fetching ODF namespace does not make sense in the manifests func for setting up addons.

Can we make it so that it is calculated by the MirrorPeer and sent further as a configuration option?

If there's no time, then we can merge it and design later.

@vbnrh
Copy link
Member

vbnrh commented Aug 6, 2024

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Aug 6, 2024
@vbnrh
Copy link
Member

vbnrh commented Aug 7, 2024

/test integration-test

@openshift-merge-bot openshift-merge-bot bot merged commit b3df88c into red-hat-storage:main Aug 7, 2024
11 checks passed
@umangachapagain umangachapagain deleted the onboarding-token-exchange branch August 7, 2024 15:27
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.

2 participants