Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
solsson committed Jul 13, 2024
1 parent ecde416 commit a99d1e0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion registry/node-update/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"fmt"
"os"
"os/exec"
"time"

"github.com/txn2/txeh"

Expand Down Expand Up @@ -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())
}
Expand Down

0 comments on commit a99d1e0

Please sign in to comment.