fix(): catch errors and increase verbosity
All checks were successful
Gitea Docker Build Demo / Test (push) Successful in 1m0s
Gitea Docker Build Demo / Build_Image (push) Successful in 1m19s

This commit is contained in:
2025-10-07 10:54:45 +02:00
parent 76fb779d08
commit 60844be81b
2 changed files with 14 additions and 3 deletions

View File

@@ -49,6 +49,11 @@ type CrdConfig struct {
}
func RecreateIPPoolCrd(cfg *Config, name string, ips []string) error {
if len(ips) == 0 {
return fmt.Errorf("no IPs provided to create IP Pool CRD")
}
routeclient, err := createRestClient()
if err != nil {
return fmt.Errorf("error creating REST Client: %v", err.Error())