Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kubespray
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Kubespray
Commits
df6da521
Unverified
Commit
df6da521
authored
2 years ago
by
emiran-orange
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Enable check mode in DNS Cleanup tasks (#9472)
parent
6ca89c80
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/kubernetes-apps/ansible/tasks/cleanup_dns.yml
+2
-0
2 additions, 0 deletions
roles/kubernetes-apps/ansible/tasks/cleanup_dns.yml
with
2 additions
and
0 deletions
roles/kubernetes-apps/ansible/tasks/cleanup_dns.yml
+
2
−
0
View file @
df6da521
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
command
:
"
{{
kubectl
}}
get
deploy
-n
kube-system
coredns
-o
jsonpath='{
.spec.template.metadata.annotations.createdby
}'"
command
:
"
{{
kubectl
}}
get
deploy
-n
kube-system
coredns
-o
jsonpath='{
.spec.template.metadata.annotations.createdby
}'"
register
:
createdby_annotation_deploy
register
:
createdby_annotation_deploy
changed_when
:
false
changed_when
:
false
check_mode
:
false
ignore_errors
:
true
# noqa ignore-errors
ignore_errors
:
true
# noqa ignore-errors
when
:
when
:
-
dns_mode in ['coredns', 'coredns_dual']
-
dns_mode in ['coredns', 'coredns_dual']
...
@@ -12,6 +13,7 @@
...
@@ -12,6 +13,7 @@
command
:
"
{{
kubectl
}}
get
svc
-n
kube-system
coredns
-o
jsonpath='{
.metadata.annotations.createdby
}'"
command
:
"
{{
kubectl
}}
get
svc
-n
kube-system
coredns
-o
jsonpath='{
.metadata.annotations.createdby
}'"
register
:
createdby_annotation_svc
register
:
createdby_annotation_svc
changed_when
:
false
changed_when
:
false
check_mode
:
false
ignore_errors
:
true
# noqa ignore-errors
ignore_errors
:
true
# noqa ignore-errors
when
:
when
:
-
dns_mode in ['coredns', 'coredns_dual']
-
dns_mode in ['coredns', 'coredns_dual']
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment