Skip to content

Commit

Permalink
Merge pull request #2742 from mantis-toboggan-md/bugfix-monitoring-wi…
Browse files Browse the repository at this point in the history
…ndows

[2.5.8] monitoring - use global.cattle.windows.enabled instead of windowsExporter.enabled
  • Loading branch information
mantis-toboggan-md authored Apr 26, 2021
2 parents 7ee04f9 + f4e53fe commit 392e901
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion chart/monitoring/ClusterSelector.vue
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const CLUSTER_TYPES = [
group: 'rke',
id: 'rke-windows',
label: 'cluster.provider.rkeWindows',
configKeys: ['rkeControllerManager', 'rkeScheduler', 'rkeProxy', 'rkeEtcd', 'windowsExporter'],
configKeys: ['rkeControllerManager', 'rkeScheduler', 'rkeProxy', 'rkeEtcd'],
},
];
Expand Down Expand Up @@ -165,6 +165,16 @@ export default {
this.$set(this.value.prometheus.prometheusSpec.resources.limits, 'memory', '2500Mi');
this.$set(this.value.prometheus.prometheusSpec.resources.requests, 'memory', '1750Mi');
}
if (clusterType.id === 'rke-windows') {
if (!this.value.global.cattle.windows) {
this.$set(this.value.global.cattle, 'windows', { enabled: true });
} else {
this.value.global.cattle.windows.enabled = true;
}
} else if (oldClusterType && oldClusterType.id === 'rke-windows') {
delete this.value.global.cattle.windows;
}
},
},
Expand Down

0 comments on commit 392e901

Please sign in to comment.