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
948d1d61
Commit
948d1d61
authored
8 years ago
by
Smaine Kahlouch
Committed by
GitHub
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #521 from anthonyhaussman/MethodBoolUseCNI
Change method to set use_hyperkube_cni var bool
parents
c96a9bfd
550bda95
No related branches found
No related tags found
Loading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/network_plugin/calico/tasks/main.yml
+8
-9
8 additions, 9 deletions
roles/network_plugin/calico/tasks/main.yml
with
8 additions
and
9 deletions
roles/network_plugin/calico/tasks/main.yml
+
8
−
9
View file @
948d1d61
...
...
@@ -22,16 +22,15 @@
changed_when
:
false
notify
:
restart calico-node
-
name
:
Calico | D
etermin
e hyperkube cni
to use depending of the version of kube
-
name
:
Calico | D
o not us
e hyperkube cni
if kube_version under v1.3.4
set_fact
:
use_hyperkube_cni
:
>
{%- if kube_version | version_compare('v1.3.4','>=') -%}
true
{%- elif kube_version | version_compare('v1.3.4','<') -%}
false
{%- else -%}
{{ ErrorCannotRecognizeVersion }}
{%- endif -%}
use_hyperkube_cni
:
false
when
:
kube_version | version_compare('v1.3.4','<')
-
name
:
Calico | Use hyperkube cni if kube_version above v1.3.4
set_fact
:
use_hyperkube_cni
:
true
when
:
kube_version | version_compare('v1.3.4','>=')
-
name
:
Calico | Install calico cni bin
command
:
rsync -piu "{{ local_release_dir }}/calico/bin/calico" "/opt/cni/bin/calico"
...
...
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