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 API token data not refresh issue #1236

Merged
merged 1 commit into from
Dec 9, 2024
Merged

Conversation

a110605
Copy link
Collaborator

@a110605 a110605 commented Dec 3, 2024

Summary

Fix API token data not refresh in standalone harvester.

Standalone harvester doesn't have websocket connect to /v3/token. While rancher dashboard have dispatch rancher/subscribe.

PR Checklist

  • Is this a multi-tenancy feature/bug?
    • Yes, the relevant RBAC changes are at:
  • Do we need to backport changes to the old Rancher UI, such as RKE1?
    • Yes, the relevant PR is at:
  • Are backend engineers aware of UI changes?

Related Issue #
harvester/harvester#6841

Backend PR : harvester/harvester#7076

Note. this PR needs to open in rancher/dashboard to fix the same issue on harvester-ui-extension.

Occurred changes and/or fixed issues

Technical notes summary

Areas or cases that should be tested

Areas which could experience regressions

Screenshot/Video

Screenshot 2024-12-03 at 1 21 45 PM
Screen.Recording.2024-12-03.at.4.15.32.PM.mov

@a110605 a110605 self-assigned this Dec 3, 2024
@@ -746,6 +746,11 @@ export const actions = {
const isRancherInHarvester = (rancherManagerSupport?.value || rancherManagerSupport?.default) === 'true';

commit('isRancherInHarvester', isRancherInHarvester);
// standalone harvester cluster needs to subscribe rancher socket to get latest token data update
Copy link
Collaborator Author

@a110605 a110605 Dec 3, 2024

Choose a reason for hiding this comment

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

Not sure there has better place to do rancher/subscribe or do single token subscription.

@a110605 a110605 added Backport to v1.3 Backport PR target v1.3 Backport to v1.4 Backport PR target v1.4 labels Dec 3, 2024
@a110605 a110605 requested a review from torchiaf December 3, 2024 05:32
@a110605 a110605 requested a review from Yu-Jack December 3, 2024 08:17
@a110605 a110605 added Require backport v1.3 This change require open backport PR to v1.3 Require backport v1.4 and removed Backport to v1.3 Backport PR target v1.3 Backport to v1.4 Backport PR target v1.4 labels Dec 3, 2024
Copy link
Collaborator

@Yu-Jack Yu-Jack left a comment

Choose a reason for hiding this comment

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

LGTM. Looks good, thanks!
image

@a110605 a110605 merged commit d72b97d into harvester:master Dec 9, 2024
19 checks passed
a110605 added a commit that referenced this pull request Dec 10, 2024
…v1.4/pr-1236

fix API token data not refresh issue (backport #1236)
a110605 added a commit that referenced this pull request Dec 10, 2024
…v1.3/pr-1236

fix API token data not refresh issue (backport #1236)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Require backport v1.3 This change require open backport PR to v1.3 Require backport v1.4
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants