We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4c671f4 + dea5268 commit 9562f21Copy full SHA for 9562f21
webui/src/js/models/wko-definition.js
@@ -19,8 +19,7 @@ define(['utils/observable-properties', 'utils/validation-helper'],
19
this.k8sServiceAccount.addValidator(...validationHelper.getK8sNameValidators());
20
21
this.versionTag = props.createProperty(window.api.ipc.invoke('get-latest-wko-version-number'));
22
-
23
- this.operatorImage = props.createProperty('ghcr.io/oracle/weblogic-kubernetes-operator:${1}', this.versionTag.observable);
+ this.operatorImage = props.createProperty();
24
const operatorImageValidators = validationHelper.getImageTagValidators();
25
this.operatorImage.addValidator(...operatorImageValidators);
26
webui/src/js/models/wkt-project.js
@@ -173,6 +173,19 @@ function (ko, wdtConstructor, imageConstructor, kubectlConstructor, domainConstr
173
}
174
175
176
+
177
+ // Version 1.7.1 changes the operator image default from populated to empty. If the
178
+ // project value is the same as what the default currently is, remove it from the project.
179
+ //
180
+ if ('wko' in wktProjectJson && 'image' in wktProjectJson.wko) {
181
+ const currentImageValue = wktProjectJson.wko.image;
182
+ const defaultImageValue =
183
+ `ghcr.io/oracle/weblogic-kubernetes-operator:${window.api.ipc.invoke('get-latest-wko-version-number')}`;
184
185
+ if (currentImageValue === defaultImageValue) {
186
+ delete wktProjectJson.wko.image;
187
+ }
188
189
};
190
191
this.setFromJson = (wktProjectJson, modelContentsJson) => {
webui/src/js/utils/cmd-script-adapter.js
@@ -208,6 +208,12 @@ define(['utils/script-adapter-base'],
208
209
210
const variableRef = this.getVariableReference(variableName);
211
+ const imageTagLines = [
212
+ `IF "${helmChartValues.image}" NEQ "" (`,
213
+ `${this.indent(1)}SET "${variableName}=${variableRef} --set image=${helmChartValues.image}"`,
214
+ ')'
215
+ ];
216
217
const serviceAccountLines = [
218
`IF "${helmChartValues.serviceAccount}" NEQ "" (`,
219
`${this.indent(1)}SET "${variableName}=${variableRef} --set serviceAccount=${helmChartValues.serviceAccount}"`,
@@ -298,6 +304,8 @@ define(['utils/script-adapter-base'],
298
304
this._lines.push(
299
305
...strategyLines,
300
306
'',
307
+ ...imageTagLines,
308
+ '',
301
309
...serviceAccountLines,
302
310
303
311
...pullSecretsLines,
webui/src/js/utils/operator-script-generator.js
@@ -212,6 +212,7 @@ define(['models/wkt-project', 'utils/script-generator-base', 'utils/helm-helper'
_gatherHelmChartArgs() {
return {
+ image: this.adapter.getVariableReference('WKO_IMAGE_TAG'),
serviceAccount: this.adapter.getVariableReference('WKO_SERVICE_ACCOUNT'),
domainNamespaceSelectionStrategy: this.adapter.getVariableReference('WKO_DOMAIN_NAMESPACE_SELECTION_STRATEGY'),
domainNamespaceLabelSelector: this.adapter.getVariableReference('WKO_DOMAIN_NAMESPACE_LABEL_SELECTOR'),
webui/src/js/utils/powershell-script-adapter.js
@@ -161,6 +161,12 @@ define(['utils/script-adapter-base'],
161
162
163
164
165
+ `if ("${helmChartValues.image}" -ne "") {`,
166
+ `${this.indent(1)}${variableName} = "${variableRef} --set image=${helmChartValues.image}"`,
167
+ '}'
168
169
170
171
`if ("${helmChartValues.serviceAccount}" -ne "") {`,
172
`${this.indent(1)}${variableName} = "${variableRef} --set serviceAccount=${helmChartValues.serviceAccount}"`,
@@ -245,6 +251,8 @@ define(['utils/script-adapter-base'],
245
251
246
252
247
253
254
255
248
256
249
257
250
258
webui/src/js/utils/sh-script-adapter.js
@@ -164,6 +164,12 @@ define(['utils/script-adapter-base'],
+ `if [ "${helmChartValues.image}" != "" ]; then`,
+ `${this.indent(1)}${variableName}="${variableRef} --set image=${helmChartValues.image}"`,
+ 'fi'
`if [ "${helmChartValues.serviceAccount}" != "" ]; then`,
`${this.indent(1)}${variableName}="${variableRef} --set serviceAccount=${helmChartValues.serviceAccount}"`,
@@ -248,6 +254,8 @@ define(['utils/script-adapter-base'],
259
260
261
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments