Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@mantis-toboggan-md
Copy link
Member

rancher/dashboard#8968 (comment)

When EKS clusters are edited, only changed values are sent in the request and the rest are preserved (more info on why here). When a user clears out previously-defined cluster/fleet agent customization the relevant fields are deleted from the cluster spec; consequently, with imported EKS clusters specifically, the previously-set values are preserved.

This PR updates the EKS cluster save function to set any cluster/fleet agent fields the user has cleared out to null, which will properly overwrite the previous value.

I found another bug in the same area (editing agent config) that appears to have a different underlying cause, issue here: rancher/dashboard#9003

Testing

  1. Edit an imported EKS cluster to add cluster/fleet agent config values
  2. Edit again and remove values
  3. Open the edit view and verify that the values were removed as expected

@mantis-toboggan-md mantis-toboggan-md added this to the 2.7.next2 milestone May 26, 2023
@codyrancher
Copy link
Member

I understand the change and I'm okay with it going in. I had one question though. Does the backend return the null values?

@mantis-toboggan-md
Copy link
Member Author

The null values are included in the response, then gone when re-querying for the cluster

@mantis-toboggan-md mantis-toboggan-md merged commit 480c2ef into rancher:master May 26, 2023
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.

2 participants