From 7323675d96eed0a4c70ad9a994407f6121a020ab Mon Sep 17 00:00:00 2001 From: jerger Date: Fri, 29 Jul 2022 15:30:43 +0200 Subject: [PATCH] mv traeffic-middleware to provs --- src/main/cljc/dda/c4k_gitea/core.cljc | 1 - src/main/cljc/dda/c4k_gitea/gitea.cljc | 5 ----- src/main/resources/gitea/traefik-middleware.yaml | 9 --------- 3 files changed, 15 deletions(-) delete mode 100644 src/main/resources/gitea/traefik-middleware.yaml diff --git a/src/main/cljc/dda/c4k_gitea/core.cljc b/src/main/cljc/dda/c4k_gitea/core.cljc index 96427c4..611e5f9 100644 --- a/src/main/cljc/dda/c4k_gitea/core.cljc +++ b/src/main/cljc/dda/c4k_gitea/core.cljc @@ -21,7 +21,6 @@ (gitea/generate-deployment) (gitea/generate-service) (gitea/generate-service-ssh) - (gitea/generate-traefik-middleware) (gitea/generate-root-volume config) (gitea/generate-data-volume config) (gitea/generate-appini-env config) diff --git a/src/main/cljc/dda/c4k_gitea/gitea.cljc b/src/main/cljc/dda/c4k_gitea/gitea.cljc index cf1dc8d..6da1beb 100644 --- a/src/main/cljc/dda/c4k_gitea/gitea.cljc +++ b/src/main/cljc/dda/c4k_gitea/gitea.cljc @@ -63,7 +63,6 @@ "gitea/secrets.yaml" (rc/inline "gitea/secrets.yaml") "gitea/service.yaml" (rc/inline "gitea/service.yaml") "gitea/service-ssh.yaml" (rc/inline "gitea/service-ssh.yaml") - "gitea/traefik-middleware.yaml" (rc/inline "gitea/traefik-middleware.yaml") "gitea/rootvolume.yaml" (rc/inline "gitea/rootvolume.yaml") "gitea/datavolume.yaml" (rc/inline "gitea/datavolume.yaml") (throw (js/Error. "Undefined Resource!"))))) @@ -151,7 +150,3 @@ (defn-spec generate-service-ssh pred/map-or-seq? [] (yaml/load-as-edn "gitea/service-ssh.yaml")) - -(defn-spec generate-traefik-middleware pred/map-or-seq? - [] - (yaml/load-as-edn "gitea/traefik-middleware.yaml")) \ No newline at end of file diff --git a/src/main/resources/gitea/traefik-middleware.yaml b/src/main/resources/gitea/traefik-middleware.yaml deleted file mode 100644 index f36d807..0000000 --- a/src/main/resources/gitea/traefik-middleware.yaml +++ /dev/null @@ -1,9 +0,0 @@ -# TODO: Review jem - 2022/07/26 - move this to provs? -apiVersion: traefik.containo.us/v1alpha1 -kind: Middleware -metadata: - name: redirect-https -spec: - redirectScheme: - scheme: https - permanent: true \ No newline at end of file