From 86851e47ff1409c8ca8e3cc45b5a209cf8476aca Mon Sep 17 00:00:00 2001 From: Gerard Nguyen Date: Wed, 21 May 2025 10:42:32 +1000 Subject: [PATCH] scope CLUSTER_NAME with USER --- applications/wg-easy/Taskfile.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/applications/wg-easy/Taskfile.yaml b/applications/wg-easy/Taskfile.yaml index b326227b..0ccc1a1c 100644 --- a/applications/wg-easy/Taskfile.yaml +++ b/applications/wg-easy/Taskfile.yaml @@ -16,12 +16,12 @@ vars: REPLICATED_LICENSE_ID: '{{.REPLICATED_LICENSE_ID}}' # Cluster configuration - CLUSTER_NAME: '{{.CLUSTER_NAME | default "test-cluster"}}' + CLUSTER_NAME: '{{.CLUSTER_NAME | default (printf "%s-cluster" (or (env "USER") "wg-easy-dev"))}}' K8S_VERSION: '{{.K8S_VERSION | default "1.32.2"}}' DISK_SIZE: '{{.DISK_SIZE | default "100"}}' INSTANCE_TYPE: '{{.INSTANCE_TYPE | default "r1.small"}}' DISTRIBUTION: '{{.DISTRIBUTION | default "k3s"}}' - KUBECONFIG_FILE: './{{.CLUSTER_NAME}}.kubeconfig' + KUBECONFIG_FILE: './test-cluster.kubeconfig' # Ports configuration EXPOSE_PORTS: