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