Skip to content

Commit

Permalink
fix: ignore errors for missing pods
Browse files Browse the repository at this point in the history
  • Loading branch information
beepdot committed Sep 6, 2022
1 parent 7a5a3a3 commit 57f0d62
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion kubernetes/ansible/roles/kong-api/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@
shell: "python /tmp/kong-api-scripts/kong_apis.py /tmp/kong_apis.json --kong-admin-api-url=http://{{ private_ingressgateway_ip }}/admin-api"

- name: Reload kong
shell: kubectl get pod -l app=apimanager --namespace={{namespace}} -o name | xargs -I{} kubectl exec {} -- kong reload
shell: kubectl get pod -l app=apimanager --namespace={{namespace}} -o name | xargs -I{} kubectl exec {} -- kong reload
ignore_errors: true
3 changes: 2 additions & 1 deletion kubernetes/ansible/roles/kong-consumer/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,5 @@
- /tmp/jwt_token.txt

- name: Reload kong
shell: kubectl get pod -l app=apimanager --namespace={{namespace}} -o name | xargs -I{} kubectl exec {} -- kong reload
shell: kubectl get pod -l app=apimanager --namespace={{namespace}} -o name | xargs -I{} kubectl exec {} -- kong reload
ignore_errors: true

0 comments on commit 57f0d62

Please sign in to comment.