feat: remove buntdb dep

This commit is contained in:
2024-12-07 22:12:46 +03:30
parent 2c25323e62
commit c5b19d3336
21 changed files with 16068 additions and 168 deletions

15
internal/crd/status.go Normal file
View 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)
}