feat(crd): add update custom resource status

This commit is contained in:
2024-12-01 23:55:58 +03:30
parent fb646086b0
commit 3e77ac121a
8 changed files with 100 additions and 13 deletions

View File

@@ -12,7 +12,7 @@ type Crd struct {
client dynamic.NamespaceableResourceInterface
}
func New() {
func New() *Crd {
// Get Kubernetes config
config, err := clientcmd.BuildConfigFromFlags("", clientcmd.RecommendedHomeFile)
if err != nil {
@@ -37,4 +37,5 @@ func New() {
// Watch for FlinkJob creation
go crd.watchFlinkJobs()
return &crd
}