Increased cert-manager and ingress api versions
This commit is contained in:
parent
1f77840be9
commit
581336e803
3 changed files with 13 additions and 7 deletions
|
@ -1,4 +1,4 @@
|
|||
apiVersion: cert-manager.io/v1alpha2
|
||||
apiVersion: cert-manager.io/v1
|
||||
kind: Certificate
|
||||
metadata:
|
||||
name: jira-cert
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
apiVersion: extensions/v1beta1
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: ingress-jira
|
||||
|
@ -21,6 +21,9 @@ spec:
|
|||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
serviceName: jira-service
|
||||
servicePort: 8080
|
||||
service:
|
||||
name: jira-service
|
||||
port:
|
||||
number: 8080
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
[dda.c4k-jira.jira :as cut]))
|
||||
|
||||
(deftest should-generate-certificate
|
||||
(is (= {:apiVersion "cert-manager.io/v1alpha2"
|
||||
(is (= {:apiVersion "cert-manager.io/v1"
|
||||
:kind "Certificate"
|
||||
:metadata {:name "jira-cert", :namespace "default"}
|
||||
:spec
|
||||
|
@ -17,7 +17,7 @@
|
|||
(cut/generate-certificate {:fqdn "xx" :issuer :prod}))))
|
||||
|
||||
(deftest should-generate-ingress
|
||||
(is (= {:apiVersion "extensions/v1beta1"
|
||||
(is (= {:apiVersion "networking.k8s.io/v1"
|
||||
:kind "Ingress"
|
||||
:metadata
|
||||
{:name "ingress-jira"
|
||||
|
@ -38,8 +38,11 @@
|
|||
:http
|
||||
{:paths
|
||||
[{:path "/"
|
||||
:pathType "Prefix"
|
||||
:backend
|
||||
{:serviceName "jira-service", :servicePort 8080}}]}}]}}
|
||||
{:service
|
||||
{:name "jira-service",
|
||||
:port {:number 8080}}}}]}}]}}
|
||||
(cut/generate-ingress {:fqdn "xx"}))))
|
||||
|
||||
(deftest should-generate-persistent-volume
|
||||
|
|
Reference in a new issue