VR
Size: a a a
IM
IM
VR
VR
IM
IM
IM
def pod_status(self):
pods_request=requests.get(
self.host+
"/api/v1/namespaces/"+
self.project+
"/pods?labelSelector=app="+
self.application,
headers=self.headers,
verify=False)
pods_status=pods_request.json()
items=pods_status['items']
for item in items:
for status in item['status']['containerStatuses']:
up=status['ready']
if up is True:
print("pod status is Running")
else:
print("pod status is not Running")
DG
IM
IM
DG
IM
VR
VR
def pod_status(self):
pods_request=requests.get(
self.host+
"/api/v1/namespaces/"+
self.project+
"/pods?labelSelector=app="+
self.application,
headers=self.headers,
verify=False)
pods_status=pods_request.json()
items=pods_status['items']
for item in items:
for status in item['status']['containerStatuses']:
up=status['ready']
if up is True:
print("pod status is Running")
else:
print("pod status is not Running")
oc wait -l app=foo --for=conditiion=Ready тогда уже :)IM
oc wait -l app=foo --for=conditiion=Ready тогда уже :)VR
rollout умеет ждать статуса емнипIM
rollout умеет ждать статуса емнипVR
IM
"conditions":[
{
"type":"Initialized",
"status":"True",
"lastProbeTime":null,
"lastTransitionTime":"2019-09-12T04:51:05Z",
"reason":"PodCompleted"
},
{
"type":"Ready",
"status":"False",
"lastProbeTime":null,
"lastTransitionTime":"2019-09-12T04:54:07Z",
"reason":"PodCompleted"
},
{
"type":"PodScheduled",
"status":"True",
"lastProbeTime":null,
"lastTransitionTime":"2019-09-12T04:51:04Z"
}]