File tree 4 files changed +9
-1
lines changed
4 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ parent: flow/etcd-recover
8
8
child : job/delete-node-$NAME-job
9
9
args :
10
10
NAME : $nodeSuffix
11
+ SELF_DELETE : " true"
11
12
---
12
13
apiVersion : appcontroller.k8s/v1alpha1
13
14
kind : Dependency
Original file line number Diff line number Diff line change @@ -35,4 +35,5 @@ parent: flow/etcd-scale
35
35
child : job/delete-node-$NAME-job
36
36
args :
37
37
NAME : $AC_NAME
38
+ SELF_DELETE : " false"
38
39
Original file line number Diff line number Diff line change 25
25
value : $clusterName
26
26
- name : REPLICA_NAME
27
27
value : $NAME
28
+ - name : SELF_DELETE
29
+ value : $SELF_DELETE
28
30
command :
29
31
- " /bin/sh"
30
32
- " -c"
38
40
kubectl delete replica "replica-$REPLICA_NAME"
39
41
kubectl delete service "etcd-$REPLICA_NAME"
40
42
kubectl delete replica -l"replicaspace=etcd-recover-$CLUSTERNAME"
41
- kubectl delete job "delete-node-$REPLICA_NAME-job"
43
+ if [ $SELF_DELETE = "true" ]
44
+ then
45
+ kubectl delete job "delete-node-$REPLICA_NAME-job"
46
+ fi
42
47
restartPolicy : Never
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ metadata:
4
4
name : monitor-clustername-job
5
5
meta :
6
6
timeout : 0
7
+ on-error : ignore
7
8
job :
8
9
apiVersion : batch/v1
9
10
kind : Job
You can’t perform that action at this time.
0 commit comments