new method of working with config

This commit is contained in:
2022-10-07 17:37:40 -05:00
parent 4db753e161
commit 9881d35bce
10 changed files with 367 additions and 273 deletions

View File

@@ -5,6 +5,8 @@ import (
"os"
"os/signal"
"syscall"
"mutating-webhook/internal/initialize"
)
func forever() {
@@ -20,9 +22,9 @@ func main() {
log.Println("[DEBUG] shutdown sequence complete")
}()
initialize()
initialize.Init()
go httpServer(config.WebSrvIP, config.WebSrvPort)
//go httpServer(config.WebSrvIP, config.WebSrvPort)
forever()
}