config: add reload, watch and change detection logic

Signed-off-by: Steffen Vogel <post@steffenvogel.de>
This commit is contained in:
Steffen Vogel
2022-09-30 08:23:09 +02:00
parent f189c4f2a2
commit 99623b39f8
26 changed files with 1245 additions and 691 deletions
+3
View File
@@ -8,6 +8,9 @@ import (
var _ = Context("default", func() {
It("has a default hostname", func() {
err := config.InitDefaults()
Expect(err).To(Succeed())
Expect(config.DefaultInterfaceSettings.PeerDisc.Hostname).NotTo(BeEmpty())
})
})