From a99d1e06f628b79b40b8f664bee9487609470000 Mon Sep 17 00:00:00 2001 From: Staffan Olsson Date: Sat, 13 Jul 2024 15:48:17 +0200 Subject: [PATCH] wip --- registry/node-update/main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/registry/node-update/main.go b/registry/node-update/main.go index 4cb9ed1..a9dfafb 100644 --- a/registry/node-update/main.go +++ b/registry/node-update/main.go @@ -6,6 +6,7 @@ import ( "fmt" "os" "os/exec" + "time" "github.com/txn2/txeh" @@ -36,11 +37,12 @@ func main() { } hosts.AddHost(buildsRegistryIp, buildsRegistryHost) hosts.AddHost(prodRegistryIp, prodRegistryHost) + hosts.AddHost("127.99.99.99", "ystack-temp-test-host") hosts.Save() fmt.Printf("host added %s %s\n", buildsRegistryIp, buildsRegistryHost) fmt.Printf("host added %s %s\n", prodRegistryIp, prodRegistryHost) - config, err := os.OpenFile(containerdConfigPath, os.O_APPEND, 0644) + config, err := os.OpenFile(containerdConfigPath, os.O_APPEND|os.O_WRONLY, 0644) if err != nil { panic(err.Error()) }