From ed7e9252a30d7843b3b6efd969742a2388e2fe38 Mon Sep 17 00:00:00 2001 From: Simon Murray Date: Wed, 10 Apr 2024 16:30:31 +0100 Subject: [PATCH] Fix Cluster Manager Defaulting (#41) --- charts/unikorn/Chart.yaml | 4 ++-- pkg/server/handler/cluster/client.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/charts/unikorn/Chart.yaml b/charts/unikorn/Chart.yaml index d45b5680..f37ffe20 100644 --- a/charts/unikorn/Chart.yaml +++ b/charts/unikorn/Chart.yaml @@ -4,7 +4,7 @@ description: A Helm chart for deploying Unikorn type: application -version: v0.2.1 -appVersion: v0.2.1 +version: v0.2.2 +appVersion: v0.2.2 icon: https://raw.githubusercontent.com/unikorn-cloud/unikorn/main/icons/default.png diff --git a/pkg/server/handler/cluster/client.go b/pkg/server/handler/cluster/client.go index 87b3f6cf..28ed4d81 100644 --- a/pkg/server/handler/cluster/client.go +++ b/pkg/server/handler/cluster/client.go @@ -215,7 +215,7 @@ func (c *Client) Create(ctx context.Context, organizationName, projectName strin // Implicitly create the controller manager. clusterManagerName := "default" - if options.ClusterManager == nil { + if options.ClusterManager != nil { clusterManagerName = *options.ClusterManager }