Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Commit

Permalink
build(k8s): multi cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasduteil committed May 28, 2020
1 parent 7545a5e commit 8f17590
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion .k8s/environments/_base/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
import gitlab from "@socialgouv/kosko-charts/environments/gitlab";
import { ok } from "assert";

export default gitlab(process.env);
const gitlabEnv =
process.env.AUTO_DEVOPS_DEV_ENVIRONMENT_NAME ||
process.env.AUTO_DEVOPS_PREPROD_ENVIRONMENT_NAME ||
process.env.AUTO_DEVOPS_PROD_ENVIRONMENT_NAME;

ok(gitlabEnv);

const ingress = gitlabEnv.endsWith("-dev")
? {
ingress: {
annotations: {
"appgw.ingress.kubernetes.io/ssl-redirect": "true",
"kubernetes.io/ingress.class": "azure/application-gateway",
},
secretName: "wildcard-crt",
},
}
: {};
export default {
...gitlab(process.env),
...ingress,
};

0 comments on commit 8f17590

Please sign in to comment.