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

Embedded cluster working group #4076

Merged
merged 33 commits into from
Oct 24, 2023
Merged

Embedded cluster working group #4076

merged 33 commits into from
Oct 24, 2023

Conversation

laverya
Copy link
Member

@laverya laverya commented Oct 18, 2023

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 26 commits October 22, 2023 18:38
if embedded-cluster-config exists in kube-system it is helmvm

add node metrics

add node pod capacity and list of pods to node metrics

implement per-node metrics endpoint with podlist
* 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
* 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
@laverya laverya force-pushed the embedded-cluster-working-group branch from f5d63d8 to 1c3e657 Compare October 22, 2023 15:39
@laverya laverya marked this pull request as ready for review October 22, 2023 15:40
* renaming things to 'embedded-cluster'

* rename frontend

* import ordering

* undo goland's wonderful formatting changes

* function naming

* undo whitespace change
@sgalsaleh sgalsaleh added the type::feature New feature or request label Oct 23, 2023
Containers: []corev1.Container{
{
Name: "k0s-token-generator",
Image: "ubuntu:latest", // TODO use the kotsadm image here as we'll know it exists
Copy link
Member

@sgalsaleh sgalsaleh Oct 23, 2023

Choose a reason for hiding this comment

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

is this a "we'll do this in a separate pr" type of TODO?

Copy link
Member Author

Choose a reason for hiding this comment

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

haaaaaah
no that's a "we intended to be using a different method that didn't happen yet" type of TODO
let me see how much effort that'll take

@laverya laverya force-pushed the embedded-cluster-working-group branch from cd4c012 to e462416 Compare October 23, 2023 17:40
sgalsaleh
sgalsaleh previously approved these changes Oct 23, 2023
@laverya laverya merged commit 1c968ee into main Oct 24, 2023
241 checks passed
@laverya laverya deleted the embedded-cluster-working-group branch October 24, 2023 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type::feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants