From ef9bb596746438e77a86e0a39af3683bcc39bca9 Mon Sep 17 00:00:00 2001 From: Joy Liu Date: Fri, 15 Sep 2023 17:33:50 -0400 Subject: [PATCH 1/2] Add Ingress Annotations to Fix Force HTTPS --- cdk/kittyhawk/src/ingress.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cdk/kittyhawk/src/ingress.ts b/cdk/kittyhawk/src/ingress.ts index fe164e54..ddc963ab 100644 --- a/cdk/kittyhawk/src/ingress.ts +++ b/cdk/kittyhawk/src/ingress.ts @@ -61,7 +61,11 @@ export class Ingress extends Construct { const rules: IngressRule[] = props.rules.map((h) => ({ host: h.host, metadata: { - annotations: props.annotations, + annotations: { + "traefik.ingress.kubernetes.io/router.middlewares": + "default-redict-http@kubernetescrd", + ...props.annotations, + }, }, http: { paths: h.paths.map((path) => ({ From 5cc1f941488891b933ed6f41f410f5eb4be0f447 Mon Sep 17 00:00:00 2001 From: Joy Liu Date: Fri, 15 Sep 2023 18:16:46 -0400 Subject: [PATCH 2/2] Add minor minor tag --- cdk/kittyhawk/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cdk/kittyhawk/package.json b/cdk/kittyhawk/package.json index 301e5ec3..ea44da73 100644 --- a/cdk/kittyhawk/package.json +++ b/cdk/kittyhawk/package.json @@ -65,7 +65,7 @@ "main": "lib/index.js", "license": "MIT", "homepage": "https://kittyhawk.pennlabs.org", - "version": "1.1.8", + "version": "1.1.8.1", "jest": { "testMatch": [ "/src/**/__tests__/**/*.ts?(x)",