-
Notifications
You must be signed in to change notification settings - Fork 302
Fixing view yaml in general and specifically in the case of provisioning clusters #15756
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
Conversation
| }, | ||
| isFullPageOverride() { | ||
| return this.isView && this.value.fullDetailPageOverride; | ||
| return this.isView && this.value.fullDetailPageOverride && !this.isYaml; |
There was a problem hiding this comment.
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
| 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); | ||
| } | ||
|
|
There was a problem hiding this comment.
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.
momesgin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and LGTM
Summary
Fixes #15736
Occurred changes and/or fixed issues
There were actually two problems that got fixed here.
Areas or cases that should be tested
Viewing, editing and downloading yaml for each cluster provider type.
To make
View Yamlvisible you should login to a standard user that has been made a cluster member to the cluster you wish to invokeView Yamlon.Areas which could experience regressions
See above
Screenshot/Video
wrong-yaml.mp4
Checklist
Admin,Standard UserandUser Base