Ensure nodelocal shows up in cluster create yaml view for rke

rancher/rancher#25811
This commit is contained in:
Westly Wright 2020-03-06 16:47:36 -07:00
parent f2b671da97
commit 9f5430ed9d
No known key found for this signature in database
GPG Key ID: 4FAB3D8673DC54A3
1 changed files with 10 additions and 1 deletions

View File

@ -26,7 +26,7 @@ import { coerceVersion } from 'shared/utils/parse-version';
import { prepareForBackend as drainNodeWillSave } from 'shared/components/drain-node/component';
const EXCLUDED_KEYS = ['name'];
const EXCLUDED_CHILDREN_KEYS = ['extra_args'];
const EXCLUDED_CHILDREN_KEYS = ['extra_args', 'nodelocal', 'dns'];
function camelToUnderline(str, split = true) {
str = (str || '');
@ -1463,6 +1463,15 @@ export default InputTextFile.extend(ManageLabels, ClusterDriver, {
type: 'authnConfig',
strategy: 'x509',
}),
dns: globalStore.createRecord({
type: 'dnsConfig',
nodelocal: globalStore.createRecord({
type: 'nodelocal',
ip_address: '',
node_selector: null,
update_strategy: {},
})
}),
network: globalStore.createRecord({
type: 'networkConfig',
plugin: 'canal',