feat: add rest routes to take the control of flink jobs

This commit is contained in:
2025-01-09 00:22:53 +03:30
parent 4dd82c6380
commit 0df874b222
14 changed files with 1019 additions and 12 deletions

View File

@@ -3,6 +3,7 @@ package main
import (
"flink-kube-operator/internal/crd"
"flink-kube-operator/internal/manager"
"flink-kube-operator/internal/rest"
"flink-kube-operator/pkg"
"log"
"os"
@@ -48,6 +49,8 @@ func main() {
// // pkg.Logger.Debug("[main]", zap.Any("job", job))
// }
go rest.Init()
cancelChan := make(chan os.Signal, 1)
sig := <-cancelChan
log.Printf("Caught signal %v", sig)