File tree Expand file tree Collapse file tree 2 files changed +18
-4
lines changed Expand file tree Collapse file tree 2 files changed +18
-4
lines changed Original file line number Diff line number Diff line change 73
73
fi
74
74
75
75
kubectl delete -f ${DIR2} /deploy/crds/ansible_v1alpha1_memcached_cr.yaml --wait=true
76
- kubectl logs deployment/memcached-operator | grep " this is a finalizer"
76
+ if ! kubectl logs deployment/memcached-operator | grep " this is a finalizer" ;
77
+ then
78
+ kubectl logs deployment/memcached-operator
79
+ exit 1
80
+ fi
81
+
82
+ # The deployment should get garbage collected, so we expect to fail getting the deployment.
83
+ if ! timeout 20s bash -c -- " while kubectl get deployment ${memcached_deployment} ; do sleep 1; done" ;
84
+ then
85
+ kubectl logs deployment/memcached-operator
86
+ exit 1
87
+ fi
77
88
78
89
popd
79
90
popd
Original file line number Diff line number Diff line change 1
1
FROM ansible/ansible-runner
2
2
3
+ RUN yum remove -y ansible python-idna
4
+ RUN pip uninstall ansible-runner -y
5
+
3
6
RUN pip install --upgrade setuptools
4
- RUN pip install urllib3==1.23
5
- RUN pip install openshift ansible-runner-http
7
+ RUN pip install ansible ansible-runner openshift kubernetes ansible-runner-http
6
8
7
- RUN echo "localhost ansible_connection=local" > /etc/ansible/hosts \
9
+ RUN mkdir -p /etc/ansible \
10
+ && echo "localhost ansible_connection=local" > /etc/ansible/hosts \
8
11
&& echo '[defaults]' > /etc/ansible/ansible.cfg \
9
12
&& echo 'roles_path = /opt/ansible/roles' >> /etc/ansible/ansible.cfg \
10
13
&& echo 'library = /usr/share/ansible/openshift' >> /etc/ansible/ansible.cfg
You can’t perform that action at this time.
0 commit comments