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" | \