Unverified Commit fe6b3364 authored by santhosh-tg's avatar santhosh-tg Committed by GitHub
Browse files

Fix the command to get deployed image (#3698)

Showing with 1 addition and 1 deletion
+1 -1
......@@ -118,7 +118,7 @@
ignore_errors: true
- name: Get deployed image name - deployments
shell: kubectl get deployments.apps {{ release_name }} -o json -n {{ namespace }} | jq -r '.spec.template.spec.containers[0].image | split("/")[1]'
shell: kubectl get deployments.apps {{ release_name }} -o json -n {{ namespace }} | jq -r '.spec.template.spec.containers[0].image | split("/")[-1]'
register: image
- set_fact:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment