perf: remove go-nanoid and rxgo
This commit is contained in:
@@ -4,7 +4,6 @@ import (
|
||||
"flink-kube-operator/internal/crd/v1alpha1"
|
||||
"os"
|
||||
|
||||
"github.com/reactivex/rxgo/v2"
|
||||
"k8s.io/apimachinery/pkg/runtime"
|
||||
"k8s.io/client-go/dynamic"
|
||||
"k8s.io/client-go/rest"
|
||||
@@ -49,10 +48,10 @@ func New() *Crd {
|
||||
runtimeClient: runtimeClient,
|
||||
}
|
||||
|
||||
jobEventCh := make(chan rxgo.Item)
|
||||
jobEventCh := make(chan FlinkJobCrdEvent)
|
||||
|
||||
// add finalizer to new resources
|
||||
go crd.manageFinalizer(rxgo.FromChannel(jobEventCh))
|
||||
go crd.manageFinalizer(jobEventCh)
|
||||
|
||||
// Watch for FlinkJob creation
|
||||
crd.watchFlinkJobs(jobEventCh)
|
||||
|
||||
Reference in New Issue
Block a user