-
Notifications
You must be signed in to change notification settings - Fork 190
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
Add enhancement to rename cluster #1974
Conversation
6e2ae1b
to
ff9fa30
Compare
feffd6d
to
930b20d
Compare
128746c
to
a8c6172
Compare
d7f04c6
to
e440342
Compare
@illume What do you think? Should try to add it for 0.24.0 or should we move it (keep it now, since I had changed the milestone when I was in the outdated branch) to 0.25.0? |
113c91b
to
656e6e3
Compare
5d3d701
to
bc1a488
Compare
8b00cd3
to
c525234
Compare
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.
👍 thanks
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.
I had a look around for the bug a little bit, but couldn't find it.
Probably we should add some tests, and perhaps refactor SettingsCluster a bit.
Maybe we should add this flag to dev mode? Or to the app?
|
This adds route that handles logic to rename clusters. When user updates their cluster name from UI, it sends the customName and source of the cluster where it is fetched from. The backend checks the source and updates the context in the source. It also maps the new customName to original name of cluster in the source. Fixes: #1653 Signed-off-by: Kautilya Tripathi <ktripathi@microsoft.com>
This adds UI to rename cluster name in cluster settings component. This does not update the values in kubeconfig/backend only for React state. Signed-off-by: Kautilya Tripathi <ktripathi@microsoft.com>
Signed-off-by: Kautilya Tripathi <ktripathi@microsoft.com>
Signed-off-by: Kautilya Tripathi <ktripathi@microsoft.com>
Signed-off-by: Joaquim Rocha <joaquim.rocha@microsoft.com> Signed-off-by: Kautilya Tripathi <ktripathi@microsoft.com>
@illume fixed, can you please test again. Thanks |
Ok... it works after I clear my localstorage. I think when it was broken something bad got in there. |
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.
Thanks. 👍
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.
Works great on my end, thanks for this! 🙌
This adds feature where user can now use renamed cluster name in their UI.
Fixes: #1653
Testing
rm ~/.config/Headlamp/kubeconfigs/config
cd app && npm run dev-only-app
cd backend && go run ./cmd -dev -enable-dynamic-clusters
Screenshots
TODO