Skip to content

Commit

Permalink
Add duration and renewBefore values for cert-manager certificates (#165)
Browse files Browse the repository at this point in the history
Signed-off-by: Erwan Vallienne <[email protected]>
  • Loading branch information
erwanval authored May 24, 2024
1 parent 33ea35c commit 2fde862
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions charts/crowdsec/templates/tls/agent-certificate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ metadata:
spec:
commonName: CrowdSec Agent
secretName: {{ .Release.Name }}-agent-tls
duration: {{ .Values.tls.certManager.duration }}
renewBefore: {{ .Values.tls.certManager.renewBefore }}
secretTemplate:
annotations:
{{ if .Values.tls.agent.reflector.namespaces }}
Expand Down
2 changes: 2 additions & 0 deletions charts/crowdsec/templates/tls/bouncer-certificate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ metadata:
spec:
commonName: CrowdSec Bouncer
secretName: {{ .Release.Name }}-bouncer-tls
duration: {{ .Values.tls.certManager.duration }}
renewBefore: {{ .Values.tls.certManager.renewBefore }}
secretTemplate:
annotations:
{{ if .Values.tls.bouncer.reflector.namespaces }}
Expand Down
2 changes: 2 additions & 0 deletions charts/crowdsec/templates/tls/lapi-certificate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ spec:
- {{ .Release.Name }}-service.{{ .Release.Namespace }}.svc.cluster.local
- localhost
secretName: {{ .Release.Name }}-lapi-tls
duration: {{ .Values.tls.certManager.duration }}
renewBefore: {{ .Values.tls.certManager.renewBefore }}
issuerRef:
{{ if .Values.tls.certManager.issuerRef }}
name: {{ .Values.tls.certManager.issuerRef.name }}
Expand Down
4 changes: 4 additions & 0 deletions charts/crowdsec/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,10 @@ tls:
issuerRef: {}
# name: ""
# kind: "ClusterIssuer"
# -- duration for Certificate resources
duration: 2160h # 90d
# -- renewBefore for Certificate resources
renewBefore: 720h # 30d
bouncer:
secret: "{{ .Release.Name }}-bouncer-tls"
reflector:
Expand Down

0 comments on commit 2fde862

Please sign in to comment.