feat(crd): update crd type

This commit is contained in:
2024-11-30 20:52:12 +03:30
parent b0ff04126a
commit 412a5292cb
9 changed files with 43 additions and 32 deletions

View File

@@ -45,6 +45,8 @@ func (crd Crd) watchFlinkJobs() {
fmt.Printf("New FlinkJob created: %s\n", job.GetName())
// Handle the new FlinkJob
handleNewFlinkJob(job)
case watch.Deleted:
}
}
}
@@ -57,6 +59,6 @@ func handleNewFlinkJob(job *v1alpha1.FlinkJob) {
// Process job specification
fmt.Printf("Processing FlinkJob %s in namespace %s kind: %s \n", name, namespace, job.Kind)
lc.Logger.Debug("[crd] [watch]", zap.Any("spec", job))
lc.Logger.Debug("[crd] [watch]", zap.Any("spec", job), zap.Any("name", job.Spec.Name))
// Add your custom logic here
}