mirror of https://github.com/rancher/ui.git
Merge pull request #2487 from loganhz/cluster-yaml
Fix windows option issue
This commit is contained in:
commit
dd923f7e1e
|
|
@ -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)
|
||||
}
|
||||
}),
|
||||
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<h1>{{title}}</h1>
|
||||
</section>
|
||||
{{else}}
|
||||
<div class="text-right">
|
||||
<div class="text-right mb-20">
|
||||
{{#if showUpload}}
|
||||
<button class="btn bg-link icon-btn" {{action "click"}}>
|
||||
<span class="darken"><i class="icon icon-upload text-small"/></span>
|
||||
|
|
|
|||
Loading…
Reference in New Issue