Get kubectl version from passed parameters
Related-Bug: PRODX-26710
Change-Id: I1d8d6133ec13663cd9cb54ed48b14ccdce133733
diff --git a/de/heat-templates/fragments/SrvInstancesVM.yaml b/de/heat-templates/fragments/SrvInstancesVM.yaml
index 67e92e0..f4158a2 100644
--- a/de/heat-templates/fragments/SrvInstancesVM.yaml
+++ b/de/heat-templates/fragments/SrvInstancesVM.yaml
@@ -75,6 +75,9 @@
default: nova
secure_overlay_enabled:
type: boolean
+ kubectl_version:
+ type: string
+ default: 1.18.8
resources:
@@ -103,6 +106,7 @@
$docker_default_address_pool: { get_param: docker_default_address_pool }
$single_node: { get_param: single_node }
$secure_overlay_enabled: { get_param: secure_overlay_enabled }
+ $kubectl_version: { get_param: kubectl_version }
inject_files:
type: "OS::Heat::CloudConfig"
diff --git a/de/heat-templates/fragments/SrvInstancesVMCeph.yaml b/de/heat-templates/fragments/SrvInstancesVMCeph.yaml
index 17b2593..0d72696 100644
--- a/de/heat-templates/fragments/SrvInstancesVMCeph.yaml
+++ b/de/heat-templates/fragments/SrvInstancesVMCeph.yaml
@@ -84,6 +84,9 @@
availability_zone:
type: string
default: nova
+ kubectl_version:
+ type: string
+ default: 1.18.8
resources:
@@ -116,6 +119,7 @@
$ironic_baremetal_network_cidr: { get_param: ironic_baremetal_network_cidr }
$ironic_baremetal_tunnel_cidr: { get_param: ironic_baremetal_tunnel_cidr }
$ironic_mt_enabled: { get_param: ironic_mt_enabled }
+ $kubectl_version: { get_param: kubectl_version }
inject_files:
type: "OS::Heat::CloudConfig"
diff --git a/de/heat-templates/fragments/SrvInstancesVMCephOSD.yaml b/de/heat-templates/fragments/SrvInstancesVMCephOSD.yaml
index f9c2ce9..31f544b 100644
--- a/de/heat-templates/fragments/SrvInstancesVMCephOSD.yaml
+++ b/de/heat-templates/fragments/SrvInstancesVMCephOSD.yaml
@@ -117,6 +117,9 @@
availability_zone:
type: string
default: nova
+ kubectl_version:
+ type: string
+ default: 1.18.8
resources:
@@ -158,6 +161,7 @@
$frr_bgp_neighbors: { get_param: frr_bgp_neighbors }
$lvm_loop_device_size: { get_param: lvm_loop_device_size }
$cinder_lvm_loop_device_size: { get_param: cinder_lvm_loop_device_size }
+ $kubectl_version: { get_param: kubectl_version }
inject_files:
type: "OS::Heat::CloudConfig"