Merge pull request #4420 from westlywright/bug.addhost

custom cluster command set etcd/cp false if windows
This commit is contained in:
Westly Wright 2021-02-04 15:22:13 -07:00 committed by GitHub
commit b1a20968d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -7,6 +7,7 @@ import { validateHostname } from '@rancher/ember-api-store/utils/validate';
import { validateEndpoint, } from 'shared/utils/util';
import { inject as service } from '@ember/service';
import { isEmpty } from '@ember/utils';
import { next } from '@ember/runloop';
export default Component.extend(ManageLabels, {
intl: service(),
@ -101,6 +102,13 @@ export default Component.extend(ManageLabels, {
const windowsCmdPostfix = ` | iex}"`;
if (windowsSelected) {
next(() => {
setProperties(this, {
etcd: false,
controlplane: false,
});
})
out = (get(this, 'token.windowsNodeCommand') || '').replace('--isolation hyperv ', '').replace(windowsCmdPostfix, '')
}