Get kubectl version from passed parameters
Related-Bug: PRODX-26710
Change-Id: I1d8d6133ec13663cd9cb54ed48b14ccdce133733
diff --git a/de/heat-templates/top.yaml b/de/heat-templates/top.yaml
index d167980..dbc47ec 100644
--- a/de/heat-templates/top.yaml
+++ b/de/heat-templates/top.yaml
@@ -375,6 +375,9 @@
kubernetes_installer:
type: string
default: "ucp"
+ kubectl_version:
+ type: string
+ default: 1.18.8
volumes_per_osd_instance:
description: >
Number of extra volumes for OSD instance
@@ -549,6 +552,7 @@
single_node: { get_param: single_node}
availability_zone: { get_param: availability_zone }
secure_overlay_enabled: { get_param: secure_overlay_enabled }
+ kubectl_version: { get_param: kubectl_version }
masters:
type: OS::Heat::ResourceGroup
@@ -581,6 +585,7 @@
functions_override: { get_param: functions_override }
hardware_metadata: { get_param: hardware_metadata}
availability_zone: { get_param: availability_zone }
+ kubectl_version: { get_param: kubectl_version }
workers:
type: OS::Heat::ResourceGroup
@@ -631,6 +636,7 @@
lvm_loop_device_size: { get_param: cmp_lvm_loop_device_size }
cinder_lvm_loop_device_size: { get_param: cmp_cinder_lvm_loop_device_size }
availability_zone: { get_param: availability_zone }
+ kubectl_version: { get_param: kubectl_version }
cmps:
type: OS::Heat::ResourceGroup
@@ -681,6 +687,7 @@
lvm_loop_device_size: { get_param: cmp_lvm_loop_device_size }
cinder_lvm_loop_device_size: { get_param: cmp_cinder_lvm_loop_device_size }
availability_zone: { get_param: availability_zone }
+ kubectl_version: { get_param: kubectl_version }
acmps:
type: OS::Heat::ResourceGroup
@@ -732,6 +739,7 @@
lvm_loop_device_size: { get_param: acmp_lvm_loop_device_size }
cinder_lvm_loop_device_size: { get_param: acmp_cinder_lvm_loop_device_size }
availability_zone: { get_param: availability_zone }
+ kubectl_version: { get_param: kubectl_version }
gtws:
type: OS::Heat::ResourceGroup
@@ -773,6 +781,7 @@
ironic_mt_enabled: { get_param: ironic_mt_enabled }
hardware_metadata: { get_param: hardware_metadata}
availability_zone: { get_param: availability_zone }
+ kubectl_version: { get_param: kubectl_version }
lmas:
type: OS::Heat::ResourceGroup
@@ -814,6 +823,7 @@
ironic_mt_enabled: { get_param: ironic_mt_enabled }
hardware_metadata: { get_param: hardware_metadata}
availability_zone: { get_param: availability_zone }
+ kubectl_version: { get_param: kubectl_version }
osds:
type: OS::Heat::ResourceGroup
@@ -863,6 +873,7 @@
hardware_metadata: { get_param: hardware_metadata}
num_volumes: { get_param: volumes_per_osd_instance }
availability_zone: { get_param: availability_zone }
+ kubectl_version: { get_param: kubectl_version }
frrs: # spares for osds/cmps
type: OS::Heat::ResourceGroup
@@ -960,6 +971,7 @@
tun_subnet_id: { get_attr: [tun_network, tun_subnet_id] }
hardware_metadata: { get_param: hardware_metadata}
availability_zone: { get_param: availability_zone }
+ kubectl_version: { get_param: kubectl_version }
vbmcs:
type: OS::Heat::ResourceGroup
@@ -1001,6 +1013,8 @@
ironic_mt_enabled: { get_param: ironic_mt_enabled }
hardware_metadata: { get_param: hardware_metadata}
availability_zone: { get_param: availability_zone }
+ kubectl_version: { get_param: kubectl_version }
+
tsrvs:
type: OS::Heat::ResourceGroup
depends_on:
@@ -1041,6 +1055,7 @@
ironic_mt_enabled: { get_param: ironic_mt_enabled }
hardware_metadata: { get_param: hardware_metadata}
availability_zone: { get_param: availability_zone }
+ kubectl_version: { get_param: kubectl_version }
outputs:
ucp_ips: