Increased cert-manager and ingress api versions

This commit is contained in:
Clemens Geibel 2021-08-13 14:48:29 +02:00
parent 1f77840be9
commit 581336e803
3 changed files with 13 additions and 7 deletions

View file

@ -1,4 +1,4 @@
apiVersion: cert-manager.io/v1alpha2 apiVersion: cert-manager.io/v1
kind: Certificate kind: Certificate
metadata: metadata:
name: jira-cert name: jira-cert

View file

@ -1,4 +1,4 @@
apiVersion: extensions/v1beta1 apiVersion: networking.k8s.io/v1
kind: Ingress kind: Ingress
metadata: metadata:
name: ingress-jira name: ingress-jira
@ -21,6 +21,9 @@ spec:
http: http:
paths: paths:
- path: / - path: /
pathType: Prefix
backend: backend:
serviceName: jira-service service:
servicePort: 8080 name: jira-service
port:
number: 8080

View file

@ -5,7 +5,7 @@
[dda.c4k-jira.jira :as cut])) [dda.c4k-jira.jira :as cut]))
(deftest should-generate-certificate (deftest should-generate-certificate
(is (= {:apiVersion "cert-manager.io/v1alpha2" (is (= {:apiVersion "cert-manager.io/v1"
:kind "Certificate" :kind "Certificate"
:metadata {:name "jira-cert", :namespace "default"} :metadata {:name "jira-cert", :namespace "default"}
:spec :spec
@ -17,7 +17,7 @@
(cut/generate-certificate {:fqdn "xx" :issuer :prod})))) (cut/generate-certificate {:fqdn "xx" :issuer :prod}))))
(deftest should-generate-ingress (deftest should-generate-ingress
(is (= {:apiVersion "extensions/v1beta1" (is (= {:apiVersion "networking.k8s.io/v1"
:kind "Ingress" :kind "Ingress"
:metadata :metadata
{:name "ingress-jira" {:name "ingress-jira"
@ -38,8 +38,11 @@
:http :http
{:paths {:paths
[{:path "/" [{:path "/"
:pathType "Prefix"
:backend :backend
{:serviceName "jira-service", :servicePort 8080}}]}}]}} {:service
{:name "jira-service",
:port {:number 8080}}}}]}}]}}
(cut/generate-ingress {:fqdn "xx"})))) (cut/generate-ingress {:fqdn "xx"}))))
(deftest should-generate-persistent-volume (deftest should-generate-persistent-volume