From a2062568617abae3ec2011b21636f744ef0c6374 Mon Sep 17 00:00:00 2001 From: Vincent Fiduccia Date: Tue, 13 Jul 2021 16:02:43 -0700 Subject: [PATCH] (controlPlane|worker)Config -> machine(Global|Selector)Config rancher/rancher#33601 --- edit/provisioning.cattle.io.cluster/rke2.vue | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/edit/provisioning.cattle.io.cluster/rke2.vue b/edit/provisioning.cattle.io.cluster/rke2.vue index 537c39f590..ecd0f45e0a 100644 --- a/edit/provisioning.cattle.io.cluster/rke2.vue +++ b/edit/provisioning.cattle.io.cluster/rke2.vue @@ -197,12 +197,12 @@ export default { }); } - if ( !this.value.spec.rkeConfig.controlPlaneConfig ) { - set(this.value.spec, 'rkeConfig.controlPlaneConfig', {}); + if ( !this.value.spec.rkeConfig.machineGlobalConfig ) { + set(this.value.spec, 'rkeConfig.machineGlobalConfig', {}); } - if ( !this.value.spec.rkeConfig.workerConfig?.length ) { - set(this.value.spec, 'rkeConfig.workerConfig', [{}]); + if ( !this.value.spec.rkeConfig.machineSelectorConfig?.length ) { + set(this.value.spec, 'rkeConfig.machineSelectorConfig', [{}]); } if ( !this.value.spec.defaultPodSecurityPolicyTemplateName ) { @@ -239,15 +239,15 @@ export default { }, serverConfig() { - return this.value.spec.rkeConfig.controlPlaneConfig; + return this.value.spec.rkeConfig.machineGlobalConfig; }, agentConfig() { - return this.value.spec.rkeConfig.workerConfig[0]; + return this.value.spec.rkeConfig.machineSelectorConfig[0]; }, multipleAgentConfigs() { - return this.value.spec.rkeConfig.workerConfig.length > 1; + return this.value.spec.rkeConfig.machineSelectorConfig.length > 1; }, unsupportedAgentConfig() { @@ -1230,8 +1230,8 @@ export default { - - + +