Skip to content

adds minimal support for attaching detected ACM clusters #864

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

thoraxe
Copy link

@thoraxe thoraxe commented Aug 7, 2025

No description provided.

@openshift-ci openshift-ci bot requested review from joshuawilson and kyoto August 7, 2025 14:59
Copy link

openshift-ci bot commented Aug 7, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign syedriko for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found 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

Copy link
Member

@kyoto kyoto left a comment

Choose a reason for hiding this comment

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

Thanks @thoraxe!

Generally looks great - just a couple of small comments

I also see there are some lint errors. If you run npm run i18n && npm run lint-fix it will probably fix everything automatically (some lint issues need manual fixing, but ~90% can be automatically fixed)

@@ -335,6 +392,10 @@ const AttachMenu: React.FC = () => {
<SelectOption value={AttachmentTypes.YAML}>
<FileCodeIcon /> {t('Alert')} {isLoading && <Spinner size="md" />}
</SelectOption>
) : kind === 'cluster.open-cluster-management.io~v1~ManagedCluster' ? (
<SelectOption value={AttachmentTypes.YAML}>
<TaskIcon /> {t('Attach cluster info')}
Copy link
Member

@kyoto kyoto Aug 8, 2025

Choose a reason for hiding this comment

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

Suggested change
<TaskIcon /> {t('Attach cluster info')}
<TaskIcon /> {t('Attach cluster info')} {isLoading && <Spinner size="md" />}

(not tested)

Copy link
Author

Choose a reason for hiding this comment

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

fixed by 88ef4e9

Comment on lines 90 to 99
const modelKey = Object.keys(models).find((k) => models[k].plural === key);
if (modelKey) {
const model = models[modelKey];
if (model && model.kind !== 'Secret') {
setKind(key);
setName(urlMatches[1]);
setNamespace(undefined);
return;
}
}
Copy link
Member

Choose a reason for hiding this comment

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

This looks redundant since we are only searching for one specific key, which I think should be a key of models, not a plural.

Copy link
Author

Choose a reason for hiding this comment

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

should be fixed by 88ef4e9

@thoraxe
Copy link
Author

thoraxe commented Aug 8, 2025

Thanks @thoraxe!

Generally looks great - just a couple of small comments

I also see there are some lint errors. If you run npm run i18n && npm run lint-fix it will probably fix everything automatically (some lint issues need manual fixing, but ~90% can be automatically fixed)

lint errors fixed via 88ef4e9

@kyoto
Copy link
Member

kyoto commented Aug 11, 2025

Thanks @thoraxe. Could you please squash the commits too?

@JoaoFula
Copy link
Contributor

/retest

@JoaoFula
Copy link
Contributor

This failure is extremely weird. There's no logs for the tests. It's like the tests refused to start for 2 hours...

@thoraxe
Copy link
Author

thoraxe commented Aug 11, 2025

Thanks @thoraxe. Could you please squash the commits too?

I can try

@thoraxe
Copy link
Author

thoraxe commented Aug 11, 2025

force pushed squashed

Copy link

openshift-ci bot commented Aug 11, 2025

@thoraxe: all tests passed!

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants