Skip to content

Commit e38a6eb

Browse files
committed
fix ingress on initial creation
1 parent b5589ee commit e38a6eb

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

client/src/components/apps/new.vue

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1250,23 +1250,14 @@ export default {
12501250
],
12511251
*/
12521252
}},
1253-
/*
1254-
computed: {
1255-
sslEnabled() {
1256-
if (this.ingress.tls.length > 0) {
1257-
return true;
1258-
} else {
1259-
return false;
1260-
}
1261-
}
1262-
},
1263-
*/
12641253
mounted() {
12651254
this.loadPipeline();
12661255
this.loadStorageClasses();
12671256
this.loadPodsizeList();
12681257
this.loadBuildpacks();
1269-
this.loadApp(); // this may lead into a race condition with the buildpacks loaded in loadPipeline
1258+
if (this.app != 'new') {
1259+
this.loadApp(); // this may lead into a race condition with the buildpacks loaded in loadPipeline
1260+
}
12701261
12711262
if (this.$route.query.template) {
12721263
this.loadTemplate(this.$route.query.catalogId, this.$route.query.template);

src/modules/application.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,16 @@ export class App implements IApp{
189189
this.imagePullSecrets = []
190190

191191
this.ingress = app.ingress
192-
this.ingress.className = process.env.KUBERNETES_INGRESS_CLASSNAME || ""
192+
this.ingress.className = process.env.KUBERNETES_INGRESS_CLASSNAME || "nginx"
193+
this.ingress.enabled = true
194+
this.ingress.hosts = [
195+
{
196+
host: app.domain || "",
197+
paths: [
198+
{path: "/" , pathType: 'ImplementationSpecific'}
199+
]
200+
}
201+
]
193202

194203
/*
195204
if (app.domain) {

0 commit comments

Comments
 (0)