mirror of https://github.com/rancher/ui.git
Support k8s version for aliyun hosted k8s
https://github.com/rancher/rancher/issues/17827
This commit is contained in:
parent
c607a22adf
commit
d2732ec901
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue