-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fetch ClusterClasses from kube-apiserver (#10)
* bump next to 14.1.1 Signed-off-by: Paul Hildebrandt <[email protected]> * remove clusterstack form & fetch wip Signed-off-by: Paul Hildebrandt <[email protected]> * wip Signed-off-by: Paul Hildebrandt <[email protected]> * wip Signed-off-by: Paul Hildebrandt <[email protected]> * new form widgets Signed-off-by: Paul Hildebrandt <[email protected]> * simple form output Signed-off-by: Paul Hildebrandt <[email protected]> * custom templates Signed-off-by: Paul Hildebrandt <[email protected]> * import rjsf tailwind components Signed-off-by: Paul Hildebrandt <[email protected]> * old form for reference Signed-off-by: Paul Hildebrandt <[email protected]> * dependencies bump Signed-off-by: Paul Hildebrandt <[email protected]> * custom fields Signed-off-by: Paul Hildebrandt <[email protected]> * fetch from capi-jsgen Signed-off-by: Paul Hildebrandt <[email protected]> * bump Signed-off-by: Paul Hildebrandt <[email protected]> * tailwind widgets Signed-off-by: Paul Hildebrandt <[email protected]> * stack selector Signed-off-by: Paul Hildebrandt <[email protected]> * new uischema Signed-off-by: Paul Hildebrandt <[email protected]> * separation in cluster, machines and variables Signed-off-by: Paul Hildebrandt <[email protected]> * full form Signed-off-by: Paul Hildebrandt <[email protected]> * bump Signed-off-by: Paul Hildebrandt <[email protected]> * pre-refactor Signed-off-by: Paul Hildebrandt <[email protected]> * tmp Signed-off-by: Paul Hildebrandt <[email protected]> * bump Signed-off-by: Paul Hildebrandt <[email protected]> * environment variables Signed-off-by: Paul Hildebrandt <[email protected]> * fullform refactor Signed-off-by: Paul Hildebrandt <[email protected]> * gitignore changes Signed-off-by: Paul Hildebrandt <[email protected]> * enum fields for select widgets Signed-off-by: Paul Hildebrandt <[email protected]> * docs Signed-off-by: Paul Hildebrandt <[email protected]> * working dex auth flow Signed-off-by: Paul Hildebrandt <[email protected]> * tmp Signed-off-by: Paul Hildebrandt <[email protected]> * download button wip Signed-off-by: Paul Hildebrandt <[email protected]> * working download button Signed-off-by: Paul Hildebrandt <[email protected]> * clean-up Signed-off-by: Paul Hildebrandt <[email protected]> * more clean-up Signed-off-by: Paul Hildebrandt <[email protected]> --------- Signed-off-by: Paul Hildebrandt <[email protected]>
- Loading branch information
Showing
93 changed files
with
4,742 additions
and
2,374 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
API_URL= # URL of your capi-jsgen instance | ||
|
||
AUTH_SECRET= # Generate with `openssl rand -base64 32` | ||
AUTH_TRUST_HOST=TRUE | ||
DEX_URL= # URL of your dex instance | ||
DEX_CLIENT_ID= # Client ID of your dex client |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
.git/ | ||
.next/ | ||
.github/ | ||
chart/ | ||
public/ | ||
pnpm-lock.yaml | ||
templates/ | ||
src/components/clusterstack-form.tsx | ||
src/components/cluster-form.tsx | ||
.env | ||
.env.example |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
apiVersion: v2 | ||
name: cluster-gen | ||
version: 1.0.0 | ||
description: A minimal helm-chart to deploy cluster-gen with a service and an ingress. You can not do much, but enough. | ||
description: A minimal helm-chart to deploy cluster-gen with a service and an ingress. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Getting started | ||
|
||
You can try out our [hosted version](https://cluster-gen.moin.k8s.scs.community) on SCS infrastructure. | ||
Alternatively you can simply follow the setup instructions outlined below to deploy your own version of the UI. | ||
|
||
## Setup | ||
|
||
### Requirements | ||
|
||
- A running cluster in which you apply your ClusterClass definitions | ||
- An instance of [capi-jsgen](https://github.com/SovereignCloudStack/capi-jsgen) running in your cluster | ||
|
||
### Develop locally | ||
|
||
#### Prerequisites | ||
|
||
- [pnpm](https://pnpm.io/installation) | ||
|
||
#### Environment variables | ||
|
||
- Create a `.env` file similar to `.env.example` in the root of the application and fill in all values. | ||
|
||
#### Start the development server | ||
|
||
```bash | ||
pnpm i | ||
pnpm dev | ||
``` | ||
|
||
### Build for production | ||
|
||
```bash | ||
pnpm build | ||
pnpm start | ||
``` | ||
|
||
#### Docker | ||
|
||
```bash | ||
docker build -t cluster-gen . | ||
docker run -p 3000:3000 cluster-gen | ||
``` | ||
|
||
#### Helm | ||
|
||
Inside `charts/` you can find a minimal chart to deploy Cluster Gen on Kubernetes with a Service and an Ingress. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Overview | ||
|
||
[Cluster Gen](https://cluster-gen.moin.k8s.scs.community) is a simple Web UI for generating Cluster objects based on Cluster Stacks | ||
|
||
## Workflow | ||
|
||
- Read clusterclass schema definitions from the kube-apiserver of the moin-cluster via the API provided by [capi-jsgen](https://github.com/SovereignCloudStack/capi-jsgen) | ||
- Render yaml form in live editor with sane defaults | ||
- On Download: perform form validation, create yaml file and open up download prompt | ||
|
||
## Built with | ||
|
||
- [Next.js](https://nextjs.org/) | ||
- [Typescript](https://www.typescriptlang.org/) | ||
- [pnpm](https://pnpm.io/) | ||
- [Tailwind CSS](https://tailwindcss.com/) | ||
- [shadcn/ui](https://ui.shadcn.com/) | ||
- [react-jsonschema-form](https://github.com/rjsf-team/react-jsonschema-form) | ||
- [capi-jsgen](https://github.com/SovereignCloudStack/capi-jsgen) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.