Upversion Netapp application
Changes included in this commit: - updated netapp required docker images - add support for PVC snapshots (beta feature since K8s 1.17); - create new ansible role for enabling PVC snapshot support and start required pod - import role for bootstrap as well, so any backend added in the future will also have support enabled by default - also use snapshot role for the netapp backend configuration (for upgrade considerations) - change netapp backend configuration of mapping backends and storage classes from 1-to-1 mapping to many-to-many mapping; instead of one backend configured for each storage-class, now any number of backends can be configured for any number of storage classes - add a new VolumeSnapshotClass configuration option for PVC snapshot support Change-Id: Ib1cf5a5b46f24a6864ac6d894e37db8732e0c6fb Depends-On: https://review.opendev.org/#/c/724237/ Story: 2007391 Task: 39566 Signed-off-by: Stefan Dinescu <stefan.dinescu@windriver.com>
This commit is contained in:
@@ -40,7 +40,8 @@
|
||||
kubernetes_version: "{{ lookup('file', 'roles/common/files/kubeadm.yaml.erb') |
|
||||
regex_search('^kubernetesVersion: (.*)$', multiline=True) | regex_replace('^(.*): (.*)$', '\\2')}}"
|
||||
when: mode == 'bootstrap' or
|
||||
mode == 'restore'
|
||||
mode == 'restore' or
|
||||
mode == 'trident_install'
|
||||
|
||||
- block:
|
||||
- name: Get the list of kubernetes images
|
||||
@@ -67,15 +68,17 @@
|
||||
tiller_armada_images:
|
||||
- "{{ tiller_img }}"
|
||||
- "{{ armada_img }}"
|
||||
storage_images:
|
||||
- "{{ snapshot_controller_img }}"
|
||||
when: kubernetes_version is defined
|
||||
|
||||
# Download all system images and additional images if bootstrap or restore
|
||||
- name: Set download images list
|
||||
set_fact:
|
||||
download_images_list:
|
||||
"{{ (kubernetes_images + networking_images + tiller_armada_images + additional_local_registry_images)
|
||||
"{{ (kubernetes_images + networking_images + tiller_armada_images + storage_images + additional_local_registry_images)
|
||||
if (additional_local_registry_images is defined and additional_local_registry_images|length > 0)
|
||||
else (kubernetes_images + networking_images + tiller_armada_images) }}"
|
||||
else (kubernetes_images + networking_images + tiller_armada_images + storage_images) }}"
|
||||
when: mode == 'bootstrap' or
|
||||
mode == 'restore'
|
||||
|
||||
@@ -93,7 +96,7 @@
|
||||
|
||||
- name: Set download images list to netapp images if installing trident
|
||||
set_fact:
|
||||
download_images_list: "{{ download_images_list|default([]) + trident_images }}"
|
||||
download_images_list: "{{ download_images_list|default([]) + trident_images + storage_images}}"
|
||||
when: mode == 'trident_install'
|
||||
|
||||
- set_fact:
|
||||
|
||||
Reference in New Issue
Block a user