From 8207d24f17a12ecc220004e7810f03a114e50d31 Mon Sep 17 00:00:00 2001 From: devantler Date: Thu, 24 Aug 2023 21:35:36 +0200 Subject: [PATCH] test --- k8s/apps/overlays/local/kustomization.yaml | 2 +- ...-dashboard-values.yaml => gitops-dashboard-patch.yaml} | 0 k8s/configs/base/certificates/certificate-local.yaml | 2 ++ k8s/configs/overlays/local/kustomization.yaml | 6 ++++++ .../overlays/local/patches/certificate-local-patch.yaml | 8 ++++++++ k8s/infrastructure/overlays/local/kustomization.yaml | 2 +- ...fik-ingress-values.yaml => traefik-ingress-patch.yaml} | 0 7 files changed, 18 insertions(+), 2 deletions(-) rename k8s/apps/overlays/local/patches/{gitops-dashboard-values.yaml => gitops-dashboard-patch.yaml} (100%) create mode 100644 k8s/configs/overlays/local/patches/certificate-local-patch.yaml rename k8s/infrastructure/overlays/local/patches/{traefik-ingress-values.yaml => traefik-ingress-patch.yaml} (100%) diff --git a/k8s/apps/overlays/local/kustomization.yaml b/k8s/apps/overlays/local/kustomization.yaml index 04e0c8ae..d0908f36 100644 --- a/k8s/apps/overlays/local/kustomization.yaml +++ b/k8s/apps/overlays/local/kustomization.yaml @@ -4,7 +4,7 @@ resources: - ../../base/gitops-dashboard patches: - - path: patches/gitops-dashboard-values.yaml + - path: patches/gitops-dashboard-patch.yaml target: kind: HelmRelease name: gitops-dashboard diff --git a/k8s/apps/overlays/local/patches/gitops-dashboard-values.yaml b/k8s/apps/overlays/local/patches/gitops-dashboard-patch.yaml similarity index 100% rename from k8s/apps/overlays/local/patches/gitops-dashboard-values.yaml rename to k8s/apps/overlays/local/patches/gitops-dashboard-patch.yaml diff --git a/k8s/configs/base/certificates/certificate-local.yaml b/k8s/configs/base/certificates/certificate-local.yaml index c476dce5..c0408d6c 100644 --- a/k8s/configs/base/certificates/certificate-local.yaml +++ b/k8s/configs/base/certificates/certificate-local.yaml @@ -5,6 +5,8 @@ metadata: namespace: traefik-ingress spec: secretName: certificate-local-tls + dnsNames: + - *.test issuerRef: name: selfsigned-local kind: ClusterIssuer diff --git a/k8s/configs/overlays/local/kustomization.yaml b/k8s/configs/overlays/local/kustomization.yaml index 16d14b77..6280ffca 100644 --- a/k8s/configs/overlays/local/kustomization.yaml +++ b/k8s/configs/overlays/local/kustomization.yaml @@ -4,3 +4,9 @@ resources: - ../../base/cluster-issuers/selfsigned-local.yaml - ../../base/certificates/certificate-local.yaml +patches: + - path: certificate-local-patch.yaml + target: + kind: Certificate + name: certificate-local + namespace: traefik-ingress \ No newline at end of file diff --git a/k8s/configs/overlays/local/patches/certificate-local-patch.yaml b/k8s/configs/overlays/local/patches/certificate-local-patch.yaml new file mode 100644 index 00000000..ed583215 --- /dev/null +++ b/k8s/configs/overlays/local/patches/certificate-local-patch.yaml @@ -0,0 +1,8 @@ +apiVersion: cert-manager.io/v1 +kind: Certificate +metadata: + name: certificate-local + namespace: traefik-ingress +spec: + dnsNames: + - *.test diff --git a/k8s/infrastructure/overlays/local/kustomization.yaml b/k8s/infrastructure/overlays/local/kustomization.yaml index 6b8b5197..e73e94fb 100644 --- a/k8s/infrastructure/overlays/local/kustomization.yaml +++ b/k8s/infrastructure/overlays/local/kustomization.yaml @@ -5,7 +5,7 @@ resources: - ../../base/traefik-ingress patches: - - path: patches/traefik-ingress-values.yaml + - path: patches/traefik-ingress-patch.yaml target: kind: HelmRelease name: traefik-ingress diff --git a/k8s/infrastructure/overlays/local/patches/traefik-ingress-values.yaml b/k8s/infrastructure/overlays/local/patches/traefik-ingress-patch.yaml similarity index 100% rename from k8s/infrastructure/overlays/local/patches/traefik-ingress-values.yaml rename to k8s/infrastructure/overlays/local/patches/traefik-ingress-patch.yaml