mirror of https://github.com/rancher/ui.git
Merge pull request #4420 from westlywright/bug.addhost
custom cluster command set etcd/cp false if windows
This commit is contained in:
commit
b1a20968d2
|
|
@ -7,6 +7,7 @@ import { validateHostname } from '@rancher/ember-api-store/utils/validate';
|
||||||
import { validateEndpoint, } from 'shared/utils/util';
|
import { validateEndpoint, } from 'shared/utils/util';
|
||||||
import { inject as service } from '@ember/service';
|
import { inject as service } from '@ember/service';
|
||||||
import { isEmpty } from '@ember/utils';
|
import { isEmpty } from '@ember/utils';
|
||||||
|
import { next } from '@ember/runloop';
|
||||||
|
|
||||||
export default Component.extend(ManageLabels, {
|
export default Component.extend(ManageLabels, {
|
||||||
intl: service(),
|
intl: service(),
|
||||||
|
|
@ -101,6 +102,13 @@ export default Component.extend(ManageLabels, {
|
||||||
const windowsCmdPostfix = ` | iex}"`;
|
const windowsCmdPostfix = ` | iex}"`;
|
||||||
|
|
||||||
if (windowsSelected) {
|
if (windowsSelected) {
|
||||||
|
next(() => {
|
||||||
|
setProperties(this, {
|
||||||
|
etcd: false,
|
||||||
|
controlplane: false,
|
||||||
|
});
|
||||||
|
})
|
||||||
|
|
||||||
out = (get(this, 'token.windowsNodeCommand') || '').replace('--isolation hyperv ', '').replace(windowsCmdPostfix, '')
|
out = (get(this, 'token.windowsNodeCommand') || '').replace('--isolation hyperv ', '').replace(windowsCmdPostfix, '')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue