From fef4b2bb016ceec82f3f8650eac5d4b933f776be Mon Sep 17 00:00:00 2001 From: L0g4n Date: Sun, 1 Mar 2020 18:14:06 +0100 Subject: [PATCH] Redirect HTTP to HTTPS --- utils.libsonnet | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/utils.libsonnet b/utils.libsonnet index 9a175ad..db24411 100644 --- a/utils.libsonnet +++ b/utils.libsonnet @@ -100,6 +100,10 @@ local k = import 'ksonnet/ksonnet.beta.4/k.libsonnet'; ingress.new() + ingress.mixin.metadata.withName(name) + ingress.mixin.metadata.withNamespace(namespace) + + ingress.mixin.spec.withTls( + ingressTls.new() + + ingressTls.withHosts(host) + ) + ingress.mixin.spec.withRules( ingressRule.new() + ingressRule.withHost(host) @@ -237,4 +241,4 @@ local k = import 'ksonnet/ksonnet.beta.4/k.libsonnet'; }, }} ), -} \ No newline at end of file +}