Skip to content

Commit b948d56

Browse files
committed
clean up debug code
1 parent e38a6eb commit b948d56

File tree

1 file changed

+0
-46
lines changed

1 file changed

+0
-46
lines changed

src/modules/application.ts

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -200,52 +200,6 @@ export class App implements IApp{
200200
}
201201
]
202202

203-
/*
204-
if (app.domain) {
205-
this.ingress = {
206-
annotations: app.ingress?.annotations || {},
207-
className: process.env.KUBERNETES_INGRESS_CLASSNAME || "",
208-
enabled: true,
209-
hosts: [
210-
{
211-
host: app.domain,
212-
paths: [
213-
{path: "/" , pathType: 'ImplementationSpecific'}
214-
]
215-
}
216-
],
217-
tls: this.ingress?.tls || [],
218-
}
219-
}
220-
221-
if ((app.ssl || this.ingress?.tls?.length > 0) && this.ingress && app.domain) {
222-
const sslAnnotations = {
223-
"cert-manager.io/cluster-issuer": "letsencrypt-prod",
224-
"kubernetes.io/tls-acme": "true",
225-
}
226-
this.ingress.annotations = {...this.ingress.annotations, ...sslAnnotations};
227-
this.ingress.tls = [
228-
{
229-
hosts: [
230-
app.domain
231-
],
232-
secretName: app.name + '-tls'
233-
}
234-
]
235-
} else {
236-
if (this.ingress?.annotations) {
237-
if (this.ingress?.annotations && "cert-manager.io/cluster-issuer" in this.ingress.annotations) {
238-
delete this.ingress.annotations["cert-manager.io/cluster-issuer"];
239-
}
240-
if (this.ingress?.annotations && "kubernetes.io/tls-acme" in this.ingress.annotations) {
241-
delete this.ingress.annotations["kubernetes.io/tls-acme"];
242-
}
243-
}
244-
}
245-
*/
246-
247-
console.log("this.ingress.annotations", this.ingress?.annotations)
248-
249203
this.nameOverride= "",
250204
this.nodeSelector= {},
251205
this.podAnnotations= {},

0 commit comments

Comments
 (0)