From 0378e0cf4a158950085aef1df999de7e5195d0f8 Mon Sep 17 00:00:00 2001 From: jerger Date: Fri, 8 Jul 2022 16:14:48 +0200 Subject: [PATCH] enabled other domain names --- doc/ProvsArchitecture.md | 2 +- .../provs/desktop/infrastructure/k3s-connect.sh | 4 ++-- .../provs/desktop/infrastructure/k3s-create-context.sh | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/ProvsArchitecture.md b/doc/ProvsArchitecture.md index fcfc33a..d9d1139 100644 --- a/doc/ProvsArchitecture.md +++ b/doc/ProvsArchitecture.md @@ -45,7 +45,7 @@ Application ..> Domain package infrastructure { class Repository - class Provs { + class Prov { create(): create a new item - might also have a parameter like: skipIfExisting delete(): delete an item - might also have a parameter like: failIfNotExisting 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 15c8b98..745c28d 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 @@ -10,14 +10,14 @@ function main() { local cluster_name="${1}"; shift local domain_name="${1:-meissa-gmbh.de}"; shift - /usr/local/bin/k3s-create-context.sh ${cluster_name} + /usr/local/bin/k3s-create-context.sh ${cluster_name} ${domain_name} kubectl config use-context ${cluster_name} ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no root@${cluster_name}.${domain_name} -L 8002:localhost:8002 -L 6443:192.168.5.1:6443 } if [ $# -gt 0 ] then - main $1 + main $1 $2 else usage exit -1 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 18a5903..7cf4485 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 @@ -26,7 +26,7 @@ function main() { if [ $# -gt 0 ] then - main $1 + main $1 $2 else usage exit -1