Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f226eb2

Browse files
Merge branch 'wktui-431' into 'main'
correct ssl termination and passthrough ingress generation. See merge request weblogic-cloud/weblogic-toolkit-ui!286
2 parents de87c0e + cc5daac commit f226eb2

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

‎webui/src/js/utils/ingress-resource-generator.js‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -238,14 +238,15 @@ define(['models/wkt-project', 'js-yaml'],
238238
result.spec.routes[0].match = matchExpression;
239239

240240
// if SSL terminate at ingress
241-
if (this.project.ingress.specifyIngressTLSSecret.value && this.isSSLTerminateAtIngress(item)) {
242-
if (!item['tlsSecretName']) {
241+
if (this.isSSLTerminateAtIngress(item)) {
242+
// Set user provided tls cert if provided, otherwise use whatever is set up during user install
243+
if (!item['tlsSecretName'] && this.project.ingress.specifyIngressTLSSecret.value) {
243244
item['tlsSecretName'] = this.project.ingress.ingressTLSSecretName.value;
245+
result.spec.tls = { secretName: item['tlsSecretName'] };
244246
}
245-
result.spec.tls = { secretName: item['tlsSecretName'] };
246247
}
247248
// SSL passthrough
248-
if (this.project.ingress.specifyIngressTLSSecret.value&&this.isSSLPassThrough(item)) {
249+
if (this.isSSLPassThrough(item)) {
249250
const obj = { passthrough: true };
250251
result.spec.tls = obj;
251252

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /