Skip to content

Conversation

@codyrancher
Copy link
Member

@codyrancher codyrancher commented Oct 27, 2025

Summary

Fixes #15736

Occurred changes and/or fixed issues

There were actually two problems that got fixed here.

  • One issue was that when a resource detail page was fully overriden we'd display a blank page when viewing yaml.
  • The other issue was that for provisioning clusters we would show the yaml for management clusters.
    • Historically I think this was the correct solution but I don't think it's correct anymore, for both download yaml and edit yaml we've been showing the provisioning yaml for quite some time. By viewing the provisioning yaml for all cluster types we're now making each of these actions consistent.

Areas or cases that should be tested

Viewing, editing and downloading yaml for each cluster provider type.

To make View Yaml visible you should login to a standard user that has been made a cluster member to the cluster you wish to invoke View Yaml on.

Areas which could experience regressions

See above

Screenshot/Video

wrong-yaml.mp4

Checklist

  • The PR is linked to an issue and the linked issue has a Milestone, or no issue is needed
  • The PR has a Milestone
  • The PR template has been filled out
  • The PR has been self reviewed
  • The PR has a reviewer assigned
  • The PR has automated tests or clear instructions for manual tests and the linked issue has appropriate QA labels, or tests are not needed
  • The PR has reviewed with UX and tested in light and dark mode, or there are no UX changes
  • The PR has been reviewed in terms of Accessibility
  • The PR has considered, and if applicable tested with, the three Global Roles Admin, Standard User and User Base

@codyrancher codyrancher modified the milestones: v2.13.0, v2.14.0 Oct 27, 2025
@codyrancher codyrancher marked this pull request as ready for review October 28, 2025 14:58
},
isFullPageOverride() {
return this.isView && this.value.fullDetailPageOverride;
return this.isView && this.value.fullDetailPageOverride && !this.isYaml;
Copy link
Member Author

Choose a reason for hiding this comment

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

This fixes the issue where we would display a blank page for view yaml

Comment on lines -263 to -282
goToViewYaml() {
let location;

if ( !this.isRke2 ) {
location = this.mgmt?.detailLocation;
}

if ( !location ) {
location = this.detailLocation;
}

location.query = {
...location.query,
[MODE]: _VIEW,
[AS]: _YAML
};

this.currentRouter().push(location);
}

Copy link
Member Author

Choose a reason for hiding this comment

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

This may feel risky but the reason I was comfortable taking this approach was because we don't override the edit yaml or download yaml location for this model. By removing this we're making things more consistent.

That's not to say that there isn't some unknown risk though.

@codyrancher codyrancher requested review from momesgin and removed request for rak-phillip October 29, 2025 19:12
Copy link
Member

@momesgin momesgin left a comment

Choose a reason for hiding this comment

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

Tested and LGTM

@codyrancher codyrancher merged commit cdaa0a6 into rancher:master Oct 29, 2025
148 of 162 checks passed
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.

Cluster config YAML takes user to incorrect page

2 participants