Skip to content

Commit adb4615

Browse files
committed
Fix traefik passthrough to use IngressRouteTCP
1 parent 7f8ad86 commit adb4615

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ define(['models/wkt-project', 'js-yaml'],
194194
}
195195

196196
if (item['path'].indexOf('.') < 0) {
197-
result.spec = { replacePathRegex: { regex: '^' + item['path'] + '(.*)'}, replacement: item['path'] + '/$1'};
197+
result.spec = { replacePathRegex: { regex: '^' + item['path'] + '(.*)', replacement: item['path'] + '/$1'}};
198198
return jsYaml.dump(result);
199199
}
200200

@@ -259,7 +259,12 @@ define(['models/wkt-project', 'js-yaml'],
259259
// SSL passthrough
260260
if (this.project.ingress.specifyIngressTLSSecret.value && this.isSSLPassThrough(item)) {
261261
const obj = { passthrough: true };
262-
result.spec.tls = [ obj ];
262+
result.spec.tls = obj;
263+
264+
// passthrough is a different kind!
265+
result.kind = 'IngressRouteTCP';
266+
delete result.spec.routes[0].kind;
267+
delete result.spec.routes[0].services[0].kind;
263268

264269
// Set HostSNI
265270
if (item && item['virtualHost']) {

0 commit comments

Comments
 (0)