Skip to content

Commit bcb573b

Browse files
authored
Merge pull request #178 from xenit-eu/NYS2AWS-143-make-cluster-issuer-optional
[NYS2AWS-143] make cluster issuer optional
2 parents 849fc8a + ba6e01f commit bcb573b

File tree

4 files changed

+18
-2
lines changed

4 files changed

+18
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
chronology things are added/fixed/changed and - where possible - links to the PRs involved.
77

88
### Changes
9+
[v0.8.9]
10+
* Introduced the `ingress.clusterIssuer` option to specify the cluster issuer for the ingress.
11+
912
[v0.8.8]
1013
* Introduced the `persistentStorage.aws.efs.storageClass.enableIfRequired`
1114
option, which can be used to prevent the AWS `efs-storage-class` from being created.

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,20 +268,30 @@ nginx rules to redirect the normal pages to a 503 maintenance page.
268268
Replacement for `kubernetes.io/ingress.class` annotation since it's deprecation in k8s 1.18.
269269
Set to `null` to allow usage of `kubernetes.io/ingress.class` in the `ingress.ingressAnnotations` dict.
270270
271+
### `ingress.clusterIssuer`
272+
273+
* Required: true
274+
* Default: `letsencrypt-production`
275+
* Description: Reference name for the cert-manager ClusterIssuer to be used.
276+
This is used to request a certificate for the ingress host.
277+
This property adds the `cert-manager.io/cluster-issuer` annotation to the ingress.
278+
If you don't want a certificate, set this to an empty string.
279+
271280
#### `ingress.ingressAnnotations`
272281
273282
* Required: false
274283
* Default:
275284
```
276285
kubernetes.io/ingress.class: "nginx"
277-
cert-manager.io/cluster-issuer: "letsencrypt-production"
278286
```
279287
* Description: Annotations for ingress.
280288
* Remarks:
281289
* The default value of `kubernetes.io/ingress.class: "nginx"` will be filtered
282290
out if the `ingress.ingressClass` is set (This includes the default value).
283291
The `kubernetes.io/ingress.class` is deprecated since k8s v1.18, but some setups still rely on it.
284292
Hence it can still be set and used if `ingress.ingressClass` is set to `null`.
293+
* Do not use this for the `cert-manager.io/cluster-issuer` annotation;
294+
use `ingress.clusterIssuer` instead.
285295
286296
#### `ingress.additionalPaths`
287297

xenit-alfresco/templates/ingress/alfresco-ingress.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ metadata:
55
name: alfresco-ingress
66
namespace: {{ .Release.Namespace | quote }}
77
annotations:
8+
{{- if and (.Values.ingress.clusterIssuer) (not (eq .Values.ingress.clusterIssuer "")) }}
9+
cert-manager.io/cluster-issuer: {{ .Values.ingress.clusterIssuer | quote }}
10+
{{- end }}
811
{{- if .Values.ingress.ingressAnnotations }}
912
{{- /*
1013
See https://kubernetes.io/docs/concepts/services-networking/ingress/#deprecated-annotation

xenit-alfresco/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ general:
2121
selfManaged: false
2222

2323
ingress:
24+
clusterIssuer: "letsencrypt-production"
2425
ingressClass: "nginx"
2526
protocol: 'https'
2627
ingressAnnotations:
2728
kubernetes.io/ingress.class: "nginx"
28-
cert-manager.io/cluster-issuer: "letsencrypt-production"
2929
defaultPath:
3030
service: nginx-default-service
3131
port: 30403

0 commit comments

Comments
 (0)