Browse Source

add support crio version for varios k8s vers (#7003)

* add support crio version for various k8s vers

* regexp in pkg versions
pull/6966/head
Sergey 4 years ago
committed by GitHub
parent
commit
85982dc8e9
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 43 additions and 10 deletions
  1. 11
      roles/container-engine/cri-o/vars/centos-7.yml
  2. 11
      roles/container-engine/cri-o/vars/centos-8.yml
  3. 16
      roles/container-engine/cri-o/vars/debian.yml
  4. 15
      roles/container-engine/cri-o/vars/ubuntu.yml

11
roles/container-engine/cri-o/vars/centos-7.yml

@ -1,5 +1,12 @@
--- ---
default_crio_packages:
- cri-o-1.19.0
crio_versioned_pkg:
"1.19":
- "cri-o-1.19.*"
"1.18":
- "cri-o-1.18.*"
"1.17":
- "cri-o-1.17.*"
default_crio_packages: "{{ crio_versioned_pkg[crio_version] }}"
crio_packages: "{{ centos_crio_packages | default(default_crio_packages) }}" crio_packages: "{{ centos_crio_packages | default(default_crio_packages) }}"

11
roles/container-engine/cri-o/vars/centos-8.yml

@ -1,5 +1,12 @@
--- ---
default_crio_packages:
- cri-o-1.19.0
crio_versioned_pkg:
"1.19":
- "cri-o-1.19.*"
"1.18":
- "cri-o-1.18.*"
"1.17":
- "cri-o-1.17.*"
default_crio_packages: "{{ crio_versioned_pkg[crio_version] }}"
crio_packages: "{{ centos_crio_packages | default(default_crio_packages) }}" crio_packages: "{{ centos_crio_packages | default(default_crio_packages) }}"

16
roles/container-engine/cri-o/vars/debian.yml

@ -1,8 +1,18 @@
--- ---
# Debian-10 has pkg only for cri-o 1.19
crio_kubernetes_version_matrix:
"1.19": "1.19"
"1.18": "1.19"
"1.17": "1.19"
crio_packages:
- "cri-o"
- "cri-o-runc"
crio_versioned_pkg:
"1.19":
- "cri-o=1.19*"
- cri-o-runc
default_crio_packages: "{{ crio_versioned_pkg[crio_version] }}"
crio_packages: "{{ debian_crio_packages | default(default_crio_packages) }}"
# The crio_runtimes variable defines a list of OCI compatible runtimes. # The crio_runtimes variable defines a list of OCI compatible runtimes.
crio_runtimes: crio_runtimes:

15
roles/container-engine/cri-o/vars/ubuntu.yml

@ -1,7 +1,16 @@
--- ---
default_crio_packages:
- "cri-o=1.19.0~0"
- "cri-o-runc=1.0.0-6"
crio_versioned_pkg:
"1.19":
- "cri-o=1.19*"
- cri-o-runc
"1.18":
- "cri-o=1.18*"
- cri-o-runc
"1.17":
- "cri-o=1.17*"
- cri-o-runc
default_crio_packages: "{{ crio_versioned_pkg[crio_version] }}"
crio_packages: "{{ ubuntu_crio_packages | default(default_crio_packages) }}" crio_packages: "{{ ubuntu_crio_packages | default(default_crio_packages) }}"

Loading…
Cancel
Save