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
2c1dd698
Commit
2c1dd698
authored
6 years ago
by
Erwan Miran
Committed by
Kubernetes Prow Robot
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Reset tasks specific to Calico (#3813)
parent
145687a4
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
roles/network_plugin/calico/tasks/reset.yml
+19
-0
19 additions, 0 deletions
roles/network_plugin/calico/tasks/reset.yml
roles/reset/tasks/main.yml
+1
-1
1 addition, 1 deletion
roles/reset/tasks/main.yml
with
20 additions
and
1 deletion
roles/network_plugin/calico/tasks/reset.yml
0 → 100644
+
19
−
0
View file @
2c1dd698
---
-
name
:
reset | check dummy0 network device
stat
:
path
:
/sys/class/net/dummy0
register
:
dummy0
-
name
:
reset | remove the network device created by calico
command
:
ip link del dummy0
when
:
dummy0.stat.exists
-
name
:
reset | get remaining routes set by bird
command
:
ip route show proto bird
register
:
bird_routes
-
name
:
reset | remove remaining routes set by bird
command
:
"
ip
route
del
{{
bird_route
}}
proto
bird"
with_items
:
"
{{
bird_routes.stdout_lines
}}"
loop_control
:
loop_var
:
bird_route
This diff is collapsed.
Click to expand it.
roles/reset/tasks/main.yml
+
1
−
1
View file @
2c1dd698
...
@@ -205,7 +205,7 @@
...
@@ -205,7 +205,7 @@
-
name
:
reset | include file with reset tasks specific to the network_plugin if exists
-
name
:
reset | include file with reset tasks specific to the network_plugin if exists
include_tasks
:
"
{{
(role_path
+
'/../network_plugin/'
+
kube_network_plugin
+
'/tasks/reset.yml')
|
realpath
}}"
include_tasks
:
"
{{
(role_path
+
'/../network_plugin/'
+
kube_network_plugin
+
'/tasks/reset.yml')
|
realpath
}}"
when
:
when
:
-
kube_network_plugin in ['flannel', 'cilium', 'contiv', 'kube-router']
-
kube_network_plugin in ['flannel', 'cilium', 'contiv', 'kube-router'
, 'calico'
]
tags
:
tags
:
-
network
-
network
...
...
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