From d54e0a702b3b44f8fec43effae52ceaeb8a7e210 Mon Sep 17 00:00:00 2001 From: Simon Murray Date: Fri, 8 Mar 2024 13:47:19 +0000 Subject: [PATCH] Remove Auto Upgrade (#18) The API has been pared back, so remove the unnecessary cruft. --- charts/ui/Chart.yaml | 4 +-- .../clusters/create/+page.svelte | 28 ++++++------------- 2 files changed, 11 insertions(+), 21 deletions(-) diff --git a/charts/ui/Chart.yaml b/charts/ui/Chart.yaml index 07ff27e..8c904e2 100644 --- a/charts/ui/Chart.yaml +++ b/charts/ui/Chart.yaml @@ -4,7 +4,7 @@ description: A Helm chart for deploying Unikorn UI type: application -version: v0.1.2 -appVersion: v0.1.2 +version: v0.1.3 +appVersion: v0.1.3 icon: https://assets.unikorn-cloud.org/assets/images/logos/dark-on-light/icon.png diff --git a/src/routes/infrastructure/clusters/create/+page.svelte b/src/routes/infrastructure/clusters/create/+page.svelte index 6121676..12d046b 100644 --- a/src/routes/infrastructure/clusters/create/+page.svelte +++ b/src/routes/infrastructure/clusters/create/+page.svelte @@ -12,7 +12,7 @@ import { getToastStore } from '@skeletonlabs/skeleton'; const toastStore = getToastStore(); - import { Stepper, Step, SlideToggle } from '@skeletonlabs/skeleton'; + import { Stepper, Step } from '@skeletonlabs/skeleton'; /* Client setup */ import { client, error } from '$lib/client.ts'; @@ -44,8 +44,6 @@ let version: string; let versions: Array; - let autoUpgrade: boolean = true; - token.subscribe((token: string): void => { /* Setup the token on load */ if (!token) return; @@ -107,9 +105,11 @@ $: updateClusters(at, controlplane); + /* Project must be set */ + $: step1Valid = project; + /* Cluster name must be valid, and it must be unique */ - $: step1Valid = - project && + $: step2Valid = cluster && Validation.kubernetesNameValid(cluster) && Validation.unique(cluster, Validation.namedResourceNames(clusters)); @@ -204,7 +204,6 @@ name: cluster, region: region, version: version, - applicationBundleAutoUpgrade: autoUpgrade, workloadPools: workloadPools.map((x) => x.model) } }; @@ -247,6 +246,10 @@ {/each} + + + + Basic Cluster Setup

Cluster Name

-
- - Basic Cluster Setup

Kubernetes Version

Worker Setup