The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Run Kubectl rollout status for a deployment to GKE

Eleazar Nwachukwu
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 25, 2022

I have a pipeline that deploys applications to GKE using 

atlassian/google-gke-kubectl-run:1.3.1.
I would like to watch the status of my deployment using Kubectl rollout status. If the deployment completes successfully, the pipeline should be complete. 
If the deployment fails the pipeline should fail.
How can I achieve this with Kubectl rollout status?
For instance:
- pipe: atlassian/google-gke-kubectl-run:1.3.1
  variables:
    KEY_FILE: '<string>'
    PROJECT: '<string>'
    COMPUTE_ZONE: '<string>'
    CLUSTER_NAME: '<string>'
    KUBECTL_COMMAND: 'apply'
RESOURCE_PATH: '<string>'
KUBECTL_COMMAND: 'rollout status deployment/'

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
o_kyrdan
May 27, 2022

Hi @Eleazar Nwachukwu 

Thank you for your question!

This pipe doesn't support wait for deployment finish.

We'll investigate your feature request and notify you.

 

Best regards,
Oleksandr Kyrdan

Eleazar Nwachukwu
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 30, 2022

I am looking forward to read from you. 

 

If you know any other pipe that can support waiting for deployment finish (Kubectl rollout status), please do recommend it.

Thank you.

TAGS
AUG Leaders

Atlassian Community Events