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 overriding update and remove links with the wrong link #451

Merged
merged 1 commit into from
Jan 15, 2025

Conversation

tomleb
Copy link
Contributor

@tomleb tomleb commented Jan 15, 2025

Before #308 we were not overriding the update / remove links, so they were pointing to the right path (/v1/...). The new code was now overriding those links but to the wrong path (/api/... or /apis/...) which points to the native k8s resource. This caused issue in the UI.

The fix is to not override the links that already exist, we either block or delete them.

@tomleb tomleb requested a review from a team as a code owner January 15, 2025 16:31
@tomleb
Copy link
Contributor Author

tomleb commented Jan 15, 2025

@ericpromislow Was there a reason to override those links? I see they are set conditionally in apiserver. Is there a case where they wouldn't be allowed in apiserver (so no links) but allowed in steve -> would result in no links?

Copy link

@bigkevmcd bigkevmcd left a comment

Choose a reason for hiding this comment

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

This is the same as I had working, so works for me!

@ericpromislow
Copy link
Contributor

@ericpromislow Was there a reason to override those links? I see they are set conditionally in apiserver. Is there a case where they wouldn't be allowed in apiserver (so no links) but allowed in steve -> would result in no links?

So Michael B walked me through his solution for a problem which turned into steve PR 308, which just incorporated the AccessSetLookup, but I don't have enough context to tell you what the reason was, nor what's going on in the apiserver.

Copy link
Contributor

@ericpromislow ericpromislow left a comment

Choose a reason for hiding this comment

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

Looks good, makes sense.

@ericpromislow ericpromislow merged commit d05a48f into rancher:main Jan 15, 2025
1 check passed
@tomleb tomleb deleted the fix-links branch January 15, 2025 19:31
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