This is an automated email from the ASF dual-hosted git repository.

zhongxjian pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-kubernetes.git


The following commit(s) were added to refs/heads/master by this push:
     new b24e3adf [horus] pod cleanup run manager (#387)
b24e3adf is described below

commit b24e3adfecbce9d1bd44e55dc3cd08be4b320959
Author: mfordjody <[email protected]>
AuthorDate: Fri Sep 27 13:37:33 2024 +0800

    [horus] pod cleanup run manager (#387)
---
 app/horus/cmd/main.go                  |  8 ++++++++
 app/horus/core/horuser/pod_abnormal.go | 15 +++++++++++++++
 2 files changed, 23 insertions(+)

diff --git a/app/horus/cmd/main.go b/app/horus/cmd/main.go
index 0c20203e..f73b1b38 100644
--- a/app/horus/cmd/main.go
+++ b/app/horus/cmd/main.go
@@ -133,6 +133,14 @@ func main() {
                }
                return nil
        })
+       group.Add(func() error {
+               klog.Info("horus pod abnormal clean manager start success.")
+               err := horus.PodAbnormalCleanManager(ctx)
+               if err != nil {
+                       klog.Errorf("horus pod abnormal clean manager start 
failed error:%v", err)
+               }
+               return nil
+       })
        group.Wait()
 }
 
diff --git a/app/horus/core/horuser/pod_abnormal.go 
b/app/horus/core/horuser/pod_abnormal.go
index ad533efd..adbc4f75 100644
--- a/app/horus/core/horuser/pod_abnormal.go
+++ b/app/horus/core/horuser/pod_abnormal.go
@@ -1,3 +1,18 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more
+// contributor license agreements.  See the NOTICE file distributed with
+// this work for additional information regarding copyright ownership.
+// The ASF licenses this file to You under the Apache License, Version 2.0
+// (the "License"); you may not use this file except in compliance with
+// the License.  You may obtain a copy of the License at
+//
+//     http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
 package horuser
 
 import (

Reply via email to