File tree 3 files changed +70
-0
lines changed
tests/e2e/operator-restart
3 files changed +70
-0
lines changed Original file line number Diff line number Diff line change
1
+ apiVersion : v1
2
+ count : 1
3
+ involvedObject :
4
+ apiVersion : v1
5
+ fieldPath : spec.containers{manager}
6
+ kind : Pod
7
+ namespace : ($OTEL_NAMESPACE)
8
+ kind : Event
9
+ message : Stopping container manager
10
+ metadata :
11
+ namespace : ($OTEL_NAMESPACE)
12
+ reason : Killing
13
+ reportingComponent : kubelet
14
+ source :
15
+ component : kubelet
16
+ type : Normal
Original file line number Diff line number Diff line change
1
+ apiVersion : v1
2
+ kind : Pod
3
+ metadata :
4
+ labels :
5
+ app.kubernetes.io/name : opentelemetry-operator
6
+ control-plane : controller-manager
7
+ namespace : ($OTEL_NAMESPACE)
8
+ status :
9
+ containerStatuses :
10
+ - name : kube-rbac-proxy
11
+ ready : true
12
+ started : true
13
+ - name : manager
14
+ ready : true
15
+ started : true
16
+ phase : Running
Original file line number Diff line number Diff line change
1
+ apiVersion : chainsaw.kyverno.io/v1alpha1
2
+ kind : Test
3
+ metadata :
4
+ name : operator-restart
5
+ spec :
6
+ # Running the test serially as its disruptive causing operator pod restart
7
+ concurrent : false
8
+ steps :
9
+ - name : Delete operator pod
10
+ try :
11
+ - command :
12
+ entrypoint : oc
13
+ args :
14
+ - get
15
+ - pods
16
+ - -A
17
+ - -l control-plane=controller-manager
18
+ - -l app.kubernetes.io/name=opentelemetry-operator
19
+ - -o
20
+ - jsonpath={.items[0].metadata.namespace}
21
+ outputs :
22
+ - name : OTEL_NAMESPACE
23
+ value : ($stdout)
24
+ - delete :
25
+ ref :
26
+ apiVersion : v1
27
+ kind : Pod
28
+ namespace : ($OTEL_NAMESPACE)
29
+ labels :
30
+ control-plane : controller-manager
31
+ app.kubernetes.io/name : opentelemetry-operator
32
+ - assert :
33
+ file : assert-operator-pod-deletion.yaml
34
+ # Adding 10s sleep here cause sometimes the pod will be running for a while but can fail later if there is any issue with the component startup.
35
+ - sleep :
36
+ duration : 10s
37
+ - assert :
38
+ file : assert-operator-pod-running.yaml
You can’t perform that action at this time.
0 commit comments