From fe83442708c0cabb7eb4f7017d0debcb19ea8617 Mon Sep 17 00:00:00 2001 From: jerger Date: Fri, 4 Nov 2022 12:47:26 +0100 Subject: [PATCH] fix k3s scripts --- .../provs/desktop/infrastructure/k3s-connect.sh | 4 ++-- .../provs/desktop/infrastructure/k3s-create-context.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/resources/org/domaindrivenarchitecture/provs/desktop/infrastructure/k3s-connect.sh b/src/main/resources/org/domaindrivenarchitecture/provs/desktop/infrastructure/k3s-connect.sh index 745c28d..bf462cc 100644 --- a/src/main/resources/org/domaindrivenarchitecture/provs/desktop/infrastructure/k3s-connect.sh +++ b/src/main/resources/org/domaindrivenarchitecture/provs/desktop/infrastructure/k3s-connect.sh @@ -7,8 +7,8 @@ function usage() { } function main() { - local cluster_name="${1}"; shift - local domain_name="${1:-meissa-gmbh.de}"; shift + local cluster_name="${1}"; + local domain_name="${2:-meissa-gmbh.de}"; /usr/local/bin/k3s-create-context.sh ${cluster_name} ${domain_name} kubectl config use-context ${cluster_name} diff --git a/src/main/resources/org/domaindrivenarchitecture/provs/desktop/infrastructure/k3s-create-context.sh b/src/main/resources/org/domaindrivenarchitecture/provs/desktop/infrastructure/k3s-create-context.sh index 7cf4485..e3206a5 100644 --- a/src/main/resources/org/domaindrivenarchitecture/provs/desktop/infrastructure/k3s-create-context.sh +++ b/src/main/resources/org/domaindrivenarchitecture/provs/desktop/infrastructure/k3s-create-context.sh @@ -8,8 +8,8 @@ function usage() { function main() { - local cluster_name="${1}"; shift - local domain_name="${1:-meissa-gmbh.de}"; shift + local cluster_name="${1}"; + local domain_name="${2:-meissa-gmbh.de}"; ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no root@${cluster_name}.${domain_name} \ "cat /etc/rancher/k3s/k3s.yaml" | \