From d40161530364511bd5f88ec367f513e405b5fe89 Mon Sep 17 00:00:00 2001 From: jem Date: Tue, 1 Feb 2022 20:42:39 +0100 Subject: [PATCH] introduce k3sServerConfig --- .run/provs-server statistics.prod.run.xml | 2 +- .run/provs-server.run.xml | 2 +- .../server/application/CliArgumentsParser.kt | 17 +++++-- .../provs/server/domain/ConfigFileName.kt | 3 ++ .../provs/server/domain/ServerCliCommand.kt | 3 +- .../provs/server/domain/ServerService.kt | 2 +- .../provs/server/domain/k3s/Fqdn.kt | 6 +++ .../provs/server/domain/k3s/Ipv4.kt | 6 +++ .../provs/server/domain/k3s/Ipv6.kt | 6 +++ .../provs/server/domain/k3s/K3sConfig.kt | 12 +++++ .../provs/server/domain/k3s/K3sService.kt | 20 ++++---- .../provs/server/domain/k3s/Reprovision.kt | 6 +++ .../infrastructure/k3s/ConfigRepository.kt | 30 ++++++++++++ .../server/infrastructure/k3s/K3sSerial.kt | 15 ++++++ .../k3s/ConfigRepositoryTest.kt | 46 +++++++++++++++++++ src/test/resources/myK3sServerConfig.yaml | 4 ++ 16 files changed, 162 insertions(+), 18 deletions(-) create mode 100644 src/main/kotlin/org/domaindrivenarchitecture/provs/server/domain/ConfigFileName.kt create mode 100644 src/main/kotlin/org/domaindrivenarchitecture/provs/server/domain/k3s/Fqdn.kt create mode 100644 src/main/kotlin/org/domaindrivenarchitecture/provs/server/domain/k3s/Ipv4.kt create mode 100644 src/main/kotlin/org/domaindrivenarchitecture/provs/server/domain/k3s/Ipv6.kt create mode 100644 src/main/kotlin/org/domaindrivenarchitecture/provs/server/domain/k3s/K3sConfig.kt create mode 100644 src/main/kotlin/org/domaindrivenarchitecture/provs/server/domain/k3s/Reprovision.kt create mode 100644 src/main/kotlin/org/domaindrivenarchitecture/provs/server/infrastructure/k3s/ConfigRepository.kt create mode 100644 src/main/kotlin/org/domaindrivenarchitecture/provs/server/infrastructure/k3s/K3sSerial.kt create mode 100644 src/test/kotlin/org/domaindrivenarchitecture/provs/server/infrastructure/k3s/ConfigRepositoryTest.kt create mode 100644 src/test/resources/myK3sServerConfig.yaml diff --git a/.run/provs-server statistics.prod.run.xml b/.run/provs-server statistics.prod.run.xml index 3c80f82..4c49865 100644 --- a/.run/provs-server statistics.prod.run.xml +++ b/.run/provs-server statistics.prod.run.xml @@ -2,7 +2,7 @@