rundeck-plugins / kubernetes

51 stars 59 forks source link

Bug correction - enabling pods-wait to show logs of a pod containing… #59

Closed midokate closed 4 years ago

midokate commented 4 years ago

… multiple containers

Before this patch if you execute pods-wait on a pod containing multiple pods you will have the following error: ( show_log must be enabled to have this error )

15:01:43 Wating for pod completion ... 15:01:53 ERROR: kubernetes-wait-pod: Exception waiting for job: (400) 15:01:53 Reason: Bad Request 15:01:53 HTTP response headers: HTTPHeaderDict({'Date': 'Fri, 14 Feb 2020 14:01:53 GMT', 'Content-Length': '216', 'Content-Type': 'application/json'}) 15:01:53 HTTP response body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"a container name must be specified for pod ansiblerundeckrunner-0, choose one of: [nginx dind-daemon]","reason":"BadRequest","code":400}