Skip to content

Commit

Permalink
Assume that cert-manager is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
ccremer committed Jan 20, 2022
1 parent 996be25 commit 453a73c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion class/defaults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ parameters:
ingress:
host: null
labels: {}
annotations: {}
annotations:
cert-manager.io/cluster-issuer: letsencrypt-production

ocp_route:
host: null
Expand Down
5 changes: 3 additions & 2 deletions docs/modules/ROOT/pages/references/parameters.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,14 @@ default:: `null`
If set, an ingress with the defined host is created.
The ingress is created with TLS spec for the same host.

NOTE: It's assumed that `cert-manager` is running on the cluster to provision Let's Encrypt certificates.


== `ingress.annotations`

[horizontal]
type:: dict
default:: `{}`
default:: `{cert-manager.io/cluster-issuer: letsencrypt-production}`
example::
+
[source,yaml]
Expand All @@ -128,7 +130,6 @@ ingress:
nginx.ingress.kubernetes.io/backend-protocol: HTTPS
nginx.ingress.kubernetes.io/ssl-passthrough: "true"
nginx.ingress.kubernetes.io/ssl-redirect: "true"
cert-manager.io/cluster-issuer: letsencrypt-production
----

Additional annotations for the ingress object.
Expand Down
3 changes: 2 additions & 1 deletion tests/golden/oidc/oidc/oidc/10_cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,8 @@ spec:
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations: {}
annotations:
cert-manager.io/cluster-issuer: letsencrypt-production
labels:
name: oidc
name: oidc
Expand Down

0 comments on commit 453a73c

Please sign in to comment.