From 19c9e7c379990dbbe52d175b7cf50bfd64bebb2d Mon Sep 17 00:00:00 2001 From: Vincent Fiduccia Date: Tue, 13 Apr 2021 11:18:55 -0700 Subject: [PATCH] Remap rke.windows to rke for logging values (#2684) --- chart/logging/index.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/chart/logging/index.vue b/chart/logging/index.vue index 4f981b2211..3cd59bcf4d 100644 --- a/chart/logging/index.vue +++ b/chart/logging/index.vue @@ -22,9 +22,15 @@ export default { }, created() { + let provider = this.provider; + + if ( provider.startsWith('rke.') ) { + provider = 'rke'; + } + this.$set(this.value, 'additionalLoggingSources', this.value.additionalLoggingSources || {}); - this.$set(this.value.additionalLoggingSources, this.provider, this.value.additionalLoggingSources[this.provider] || {}); - this.$set(this.value.additionalLoggingSources[this.provider], 'enabled', true); + this.$set(this.value.additionalLoggingSources, provider, this.value.additionalLoggingSources[provider] || {}); + this.$set(this.value.additionalLoggingSources[provider], 'enabled', true); this.$set(this.value, 'global', this.value.global || {}); }, };