emiran-orange
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
0 deletions
-
roles/kubernetes-apps/ansible/tasks/cleanup_dns.yml
|
|
@ -3,6 +3,7 @@ |
|
|
|
command: "{{ kubectl }} get deploy -n kube-system coredns -o jsonpath='{ .spec.template.metadata.annotations.createdby }'" |
|
|
|
register: createdby_annotation_deploy |
|
|
|
changed_when: false |
|
|
|
check_mode: false |
|
|
|
ignore_errors: true # noqa ignore-errors |
|
|
|
when: |
|
|
|
- dns_mode in ['coredns', 'coredns_dual'] |
|
|
@ -12,6 +13,7 @@ |
|
|
|
command: "{{ kubectl }} get svc -n kube-system coredns -o jsonpath='{ .metadata.annotations.createdby }'" |
|
|
|
register: createdby_annotation_svc |
|
|
|
changed_when: false |
|
|
|
check_mode: false |
|
|
|
ignore_errors: true # noqa ignore-errors |
|
|
|
when: |
|
|
|
- dns_mode in ['coredns', 'coredns_dual'] |
|
|
|