diff --git a/lib/shared/addon/components/cluster-driver/driver-rke/component.js b/lib/shared/addon/components/cluster-driver/driver-rke/component.js index 4457812b9..ff9e0bca8 100644 --- a/lib/shared/addon/components/cluster-driver/driver-rke/component.js +++ b/lib/shared/addon/components/cluster-driver/driver-rke/component.js @@ -158,7 +158,7 @@ export default InputTextFile.extend(ClusterDriver, { set(this, 'defaultDockerRootDir', defaultCluster.dockerRootDir) if (get(this, 'isEdit')) { - if (get(this, 'config.network.options.flannel_backend_type') === HOST_GW) { + if (get(this, 'config.network.options.flannelBackendType') === HOST_GW) { set(this, 'windowsSupport', true) } } @@ -212,7 +212,7 @@ export default InputTextFile.extend(ClusterDriver, { network: globalStore.createRecord({ type: 'networkConfig', plugin: 'canal', - options: { flannel_backend_type: DEFAULT_BACKEND_TYPE, }, + options: { flannelBackendType: DEFAULT_BACKEND_TYPE, }, }), ingress: globalStore.createRecord({ type: 'ingressConfig', @@ -271,9 +271,9 @@ export default InputTextFile.extend(ClusterDriver, { const config = get(this, 'cluster.rancherKubernetesEngineConfig') if (windowsSupport) { - set(config, 'network.options.flannel_backend_type', HOST_GW) + set(config, 'network.options.flannelBackendType', HOST_GW) } else { - set(config, 'network.options.flannel_backend_type', DEFAULT_BACKEND_TYPE) + set(config, 'network.options.flannelBackendType', DEFAULT_BACKEND_TYPE) } }), diff --git a/lib/shared/addon/components/input-yaml/template.hbs b/lib/shared/addon/components/input-yaml/template.hbs index 9b362d6e6..ae4a9930e 100644 --- a/lib/shared/addon/components/input-yaml/template.hbs +++ b/lib/shared/addon/components/input-yaml/template.hbs @@ -17,7 +17,7 @@

{{title}}

{{else}} -
+
{{#if showUpload}}