|
1 | 1 | /** |
2 | 2 | * @license |
3 | | - * Copyright (c) 2021, Oracle and/or its affiliates. |
| 3 | + * Copyright (c) 2021, 2023, Oracle and/or its affiliates. |
4 | 4 | * Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. |
5 | 5 | */ |
6 | 6 | 'use strict'; |
@@ -176,7 +176,7 @@ function(WktActionsBase, project, wktConsole, i18n, projectIo, dialogHelper, val |
176 | 176 | // Only put the values in here where the UI is not following the operator helm chart's default values. |
177 | 177 | // |
178 | 178 | serviceAccount: operatorServiceAccount, |
179 | | - domainNamespaceSelectionStrategy: this.project.wko.operatorDomainNamespaceSelectionStrategy.value |
| 179 | + domainNamespaceSelectionStrategy: this.project.wko.operatorDomainNamespaceSelectionStrategy.value, |
180 | 180 | }; |
181 | 181 |
|
182 | 182 | if (!this.isValueEmpty(this.project.wko.operatorImage.value)) { |
@@ -232,9 +232,15 @@ function(WktActionsBase, project, wktConsole, i18n, projectIo, dialogHelper, val |
232 | 232 | } |
233 | 233 |
|
234 | 234 | this.addHelmChartValueIfSet(helmChartValues, 'javaLoggingLevel', this.project.wko.javaLoggingLevel); |
235 | | - this.addHelmChartValueIfSet(helmChartValues, 'javaLoggingFileSizeLimit', this.project.wko.javaLoggingFileSizeLimit); |
236 | 235 | this.addHelmChartValueIfSet(helmChartValues, 'javaLoggingFileCount', this.project.wko.javaLoggingFileCount); |
237 | 236 |
|
| 237 | + // Prior to WKO 4.1.0, the operator Helm charts were vulnerable to Helm bug #1707 that mangles the value of |
| 238 | + // large integers by putting them in scientific notation. This causes the javaLoggingFileSizeLimit to not be |
| 239 | + // honored. As a workaround, always include this parameter in the Helm chart values. The code processing this |
| 240 | + // collection will use --set-string for this property to ensure that it is set correctly. |
| 241 | + // |
| 242 | + helmChartValues['javaLoggingFileSizeLimit'] = this.project.wko.javaLoggingFileSizeLimit.value; |
| 243 | + |
238 | 244 | if (this.project.wko.nodeSelector.hasValue()) { |
239 | 245 | const nodeSelectorMap = {}; |
240 | 246 | this.project.wko.nodeSelector.value.forEach(label => { |
|
0 commit comments