fix: cease cluster

Signed-off-by: hongming <talonwan@yunify.com>
This commit is contained in:
hongming
2020-02-06 17:32:50 +08:00
parent 88da4f7809
commit 76c8785c2d

View File

@@ -405,7 +405,8 @@ func DeleteApplication(clusterId string) error {
return err
}
_, err = client.Cluster().DeleteClusters(openpitrix.SystemContext(), &pb.DeleteClustersRequest{ClusterId: []string{clusterId}, Force: &wrappers.BoolValue{Value: true}})
_, err = client.Cluster().CeaseClusters(openpitrix.SystemContext(),
&pb.CeaseClustersRequest{ClusterId: []string{clusterId}, Force: &wrappers.BoolValue{Value: true}})
if err != nil {
klog.Errorln(err)