mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-12-01 03:07:51 +08:00
[FIX] fix bug
This commit is contained in:
parent
6bd2a9571e
commit
9380cfb82b
@ -544,10 +544,11 @@ type Manager struct {
|
||||
dclient *client.Client
|
||||
}
|
||||
|
||||
func NewManager(ctx context.Context, kubeclient *kubernetes.Clientset) (*Manager, error) {
|
||||
func NewManager(ctx context.Context, cancel context.CancelFunc, kubeclient *kubernetes.Clientset) (*Manager, error) {
|
||||
m := &Manager{
|
||||
ctx: ctx,
|
||||
kubeclient: kubeclient,
|
||||
cancel: cancel,
|
||||
}
|
||||
queryResource := []func(*Manager) []Resource{
|
||||
QueryRcResource,
|
||||
|
@ -62,8 +62,8 @@ func NewAppRuntimeSyncServer(conf option.Config) *AppRuntimeSyncServer {
|
||||
statusManager := status.NewManager(ctx, clientset)
|
||||
stopChan := make(chan struct{})
|
||||
podCache := pod.NewCacheManager(clientset)
|
||||
Clean,err := clean.NewManager(ctx, clientset)
|
||||
if err!= nil{
|
||||
Clean, err := clean.NewManager(ctx, cancel, clientset)
|
||||
if err != nil {
|
||||
logrus.Error(err)
|
||||
}
|
||||
arss := &AppRuntimeSyncServer{
|
||||
|
Loading…
Reference in New Issue
Block a user