From a417bec55e0718d3260f198c7e883c1f2f939a5d Mon Sep 17 00:00:00 2001
From: Sheogorath <sheogorath@shivering-isles.com>
Date: Mon, 7 Nov 2022 19:58:22 +0100
Subject: [PATCH] feat(cert-manager): Add cluster issuer for self-signing

---
 infrastructure/cert-manager/kustomization.yaml | 1 +
 infrastructure/cert-manager/self-signed.yaml   | 7 +++++++
 2 files changed, 8 insertions(+)
 create mode 100644 infrastructure/cert-manager/self-signed.yaml

diff --git a/infrastructure/cert-manager/kustomization.yaml b/infrastructure/cert-manager/kustomization.yaml
index dd8fcaea5..4d1b1f4fa 100644
--- a/infrastructure/cert-manager/kustomization.yaml
+++ b/infrastructure/cert-manager/kustomization.yaml
@@ -7,6 +7,7 @@ resources:
   - release.yaml
   - networkpolicy.yaml
   - alerts.yaml
+  - self-signed.yaml
   - ../../shared/networkpolicies/allow-from-monitoring.yaml
   - ../../shared/networkpolicies/allow-from-same-namespace.yaml
   - ../../shared/networkpolicies/allow-from-all-namespaces.yaml
diff --git a/infrastructure/cert-manager/self-signed.yaml b/infrastructure/cert-manager/self-signed.yaml
new file mode 100644
index 000000000..2f3a5ac5f
--- /dev/null
+++ b/infrastructure/cert-manager/self-signed.yaml
@@ -0,0 +1,7 @@
+---
+apiVersion: cert-manager.io/v1
+kind: ClusterIssuer
+metadata:
+  name: selfsigned-cluster-issuer
+spec:
+  selfSigned: {}
-- 
GitLab