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

[WIP] allow edit and delete node, move add node modal to separate file #4095

Closed
wants to merge 37 commits into from

Conversation

alicenstar
Copy link
Member

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Steps to reproduce

Does this PR introduce a user-facing change?


Does this PR require documentation?

laverya and others added 30 commits October 18, 2023 16:12
if embedded-cluster-config exists in kube-system it is helmvm
* generate a node join token

* two mutexes, and do not restart successful pods

* generate the full node join command

* all controllers are also workers

* allow arbitrary node roles

* role is controller not controller+worker
* wip: refactor helm cluster page, add view node page

* add new add node modal

* protect routes

* move parenthesis

* use test data for now

* add material react table

* start connecting additional api calls, add test pod data

* add material react table to display pods

* revert change

* uncomment real queries

* fix useparams import

* fix params/routing, update api route

* fix loading/refetch state

* update generate add node request

* add error handling, add mui react table to cluster manage page

* move ts-ignore line

* remove delete functionality for now
* shorter commands wip

* actually return the token

* actually return token

* return entire commands

* handle error

* fix lolgic

* imports
add kube-proxy/os/kernel to node metrics

return 'used' not 'available'
* remove pause and delete columns until the api code is ready, add loading state, update styles

* update variable names, fix redirect to cluster manage
* make clipboard work with http, fix redirect to cluster manage page

* right align columns, remove placeholders, add namespace column
* fix vet

* fix tests

* complete mock handler

* more test

* mockgen
* check for labels

* make labels optional type
* implement 'IsHelmVM' function based on presence of configmap

if embedded-cluster-config exists in kube-system it is helmvm

* change namespace of embedded cluster config

---------

Co-authored-by: Andrew Lavery <[email protected]>
* improve logic around initial cluster flow, comment test data

* fix types, redirect on unknown or pending config status if helmvm
laverya and others added 6 commits October 20, 2023 12:28
* node role labels

* handle having no labels on the first node

* f

* include a prefix on the label

* = not :
* fix config redirect, remove unnecessary code

* linting
@alicenstar alicenstar changed the title wip: add test data for dev, start adding edit and delete buttons allow edit and delete node, move add node modal to separate file Oct 20, 2023
@alicenstar alicenstar changed the title allow edit and delete node, move add node modal to separate file [WIP] allow edit and delete node, move add node modal to separate file Oct 20, 2023
renderRowActionMenuItems={({ closeMenu }) => [
<MenuItem
key="edit"
onClick={() => {
Copy link
Member Author

Choose a reason for hiding this comment

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

TODO: add the edit and delete functionality to the onClick handlers

@laverya laverya force-pushed the embedded-cluster-working-group branch from f5d63d8 to 1c3e657 Compare October 22, 2023 15:39
Base automatically changed from embedded-cluster-working-group to main October 24, 2023 19:23
@obfuscurity
Copy link

@alicenstar is this still WIP or can it be closed?

@alicenstar
Copy link
Member Author

@obfuscurity It can be closed - I'll close it now!

@alicenstar alicenstar closed this Dec 11, 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.

4 participants