feat(crd): update crd type
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user