-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
05c5251
commit 583c85b
Showing
6 changed files
with
172 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package main | ||
|
||
import ( | ||
"context" | ||
"github.com/wobcom/wobberator/internal/app" | ||
config2 "github.com/wobcom/wobberator/internal/pkg/config" | ||
"github.com/wobcom/wobberator/internal/pkg/kubernetes" | ||
"log/slog" | ||
"os" | ||
"sync" | ||
) | ||
|
||
func main() { | ||
|
||
slog.SetLogLoggerLevel(slog.LevelDebug) | ||
|
||
clientset, err := kubernetes.GetClient() | ||
if err != nil { | ||
slog.Error("Kubernetes client could not be loaded", "err", err) | ||
os.Exit(1) | ||
} | ||
|
||
config, err := config2.GetConfig() | ||
if err != nil { | ||
slog.Error("Config could not be loaded", "err", err) | ||
os.Exit(1) | ||
} | ||
ctx := context.Background() | ||
|
||
var wg sync.WaitGroup | ||
|
||
wg.Add(1) | ||
go func() { | ||
defer wg.Done() | ||
slog.Info("Calling RunHostRouteAssignment") | ||
app.RunHostRouteAssignment(ctx, clientset, &config.HostRouteAssignmentConfig) | ||
}() | ||
|
||
wg.Wait() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters