feat: remove buntdb dep
This commit is contained in:
15
internal/crd/status.go
Normal file
15
internal/crd/status.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package crd
|
||||
|
||||
import (
|
||||
"flink-kube-operator/internal/crd/v1alpha1"
|
||||
|
||||
"k8s.io/apimachinery/pkg/types"
|
||||
)
|
||||
|
||||
func (crd Crd) SetJobStatus(jobUid types.UID, status v1alpha1.FlinkJobStatus) error {
|
||||
// Define the patch data (JSON Merge Patch format)
|
||||
patchData := map[string]interface{}{
|
||||
"status": status,
|
||||
}
|
||||
return crd.Patch(jobUid, patchData)
|
||||
}
|
||||
Reference in New Issue
Block a user