Add option to configure Nomad namespace

This commit is contained in:
sirkrypt0
2021-05-11 16:04:58 +02:00
committed by Tobias Kantusch
parent d83e0e4548
commit 6da9080bce
8 changed files with 42 additions and 33 deletions

View File

@@ -26,10 +26,11 @@ var (
KeyFile: "",
},
Nomad: nomad{
Address: "127.0.0.1",
Port: 4646,
Token: "",
TLS: false,
Address: "127.0.0.1",
Port: 4646,
Token: "",
TLS: false,
Namespace: "default",
},
Logger: logger{
Level: "INFO",
@@ -57,10 +58,11 @@ type server struct {
// nomad configures the used Nomad cluster.
type nomad struct {
Address string
Port int
Token string
TLS bool
Address string
Port int
Token string
TLS bool
Namespace string
}
// logger configures the used logger.