Support k8s version for aliyun hosted k8s

https://github.com/rancher/rancher/issues/17827
This commit is contained in:
loganhz 2019-02-10 13:57:24 +08:00
parent c607a22adf
commit d2732ec901
2 changed files with 8 additions and 10 deletions

View File

@ -11,12 +11,7 @@ const ENDPOINT = 'ecs.aliyuncs.com';
const PAGE_SIZE = 50;
const K8S_1_11_5 = '1.11.5';
const VERSIONS = [
{
label: K8S_1_11_5,
value: K8S_1_11_5
}
];
const VERSIONS = [K8S_1_11_5];
const DISKS = [
{
@ -103,7 +98,6 @@ export default Component.extend(ClusterDriver, {
keyChoices: null,
allSubnets: null,
allInstances: null,
version: K8S_1_11_5,
init() {
this._super(...arguments);
@ -117,6 +111,7 @@ export default Component.extend(ClusterDriver, {
accessKeySecret: null,
regionId: 'cn-beijing',
clusterType: 'Kubernetes',
kubernetesVersion: K8S_1_11_5,
zoneId: null,
snatEntry: true,
publicSlb: true,

View File

@ -60,9 +60,12 @@
<div class="col span-6">
<label class="acc-label">{{t 'clusterNew.aliyunkcs.version.label'}}</label>
{{#if (eq step 2)}}
{{searchable-select class="form-control"
content=versionChoices
value=version
{{form-versions
cluster=cluster
editing=(eq mode "edit")
value=config.kubernetesVersion
versions=versionChoices
initialVersion=config.version
}}
{{else}}
<div>{{version}}</div>