Skip to content

Commit

Permalink
clean up debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
mms-gianni committed Oct 16, 2023
1 parent e38a6eb commit b948d56
Showing 1 changed file with 0 additions and 46 deletions.
46 changes: 0 additions & 46 deletions src/modules/application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,52 +200,6 @@ export class App implements IApp{
}
]

/*
if (app.domain) {
this.ingress = {
annotations: app.ingress?.annotations || {},
className: process.env.KUBERNETES_INGRESS_CLASSNAME || "",
enabled: true,
hosts: [
{
host: app.domain,
paths: [
{path: "/" , pathType: 'ImplementationSpecific'}
]
}
],
tls: this.ingress?.tls || [],
}
}
if ((app.ssl || this.ingress?.tls?.length > 0) && this.ingress && app.domain) {
const sslAnnotations = {
"cert-manager.io/cluster-issuer": "letsencrypt-prod",
"kubernetes.io/tls-acme": "true",
}
this.ingress.annotations = {...this.ingress.annotations, ...sslAnnotations};
this.ingress.tls = [
{
hosts: [
app.domain
],
secretName: app.name + '-tls'
}
]
} else {
if (this.ingress?.annotations) {
if (this.ingress?.annotations && "cert-manager.io/cluster-issuer" in this.ingress.annotations) {
delete this.ingress.annotations["cert-manager.io/cluster-issuer"];
}
if (this.ingress?.annotations && "kubernetes.io/tls-acme" in this.ingress.annotations) {
delete this.ingress.annotations["kubernetes.io/tls-acme"];
}
}
}
*/

console.log("this.ingress.annotations", this.ingress?.annotations)

this.nameOverride= "",
this.nodeSelector= {},
this.podAnnotations= {},
Expand Down

0 comments on commit b948d56

Please sign in to comment.