Skip to content

Commit

Permalink
add ability to use a custom issuer
Browse files Browse the repository at this point in the history
  • Loading branch information
allenmun197 authored and rij539 committed Feb 21, 2024
1 parent 2914bff commit 957aca5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if .Values.tls.certManager }}
{{- if .Values.tls.certManager.enable }}
{{- if .Values.master.enable }}
---
apiVersion: cert-manager.io/v1
Expand All @@ -19,8 +19,8 @@ spec:
- {{ include "node-feature-discovery.fullname" . }}-master.{{ include "node-feature-discovery.namespace" . }}.svc
- {{ include "node-feature-discovery.fullname" . }}-master.{{ include "node-feature-discovery.namespace" . }}.svc.cluster.local
issuerRef:
name: nfd-ca-issuer
kind: Issuer
name: {{ default "nfd-ca-issuer" .Values.tls.certManager.issuerName }}
kind: {{ default "Issuer" .Values.tls.certManager.issuerKind }}
group: cert-manager.io
{{- end }}
---
Expand All @@ -39,8 +39,8 @@ spec:
dnsNames:
- {{ include "node-feature-discovery.fullname" . }}-worker.{{ include "node-feature-discovery.namespace" . }}.svc.cluster.local
issuerRef:
name: nfd-ca-issuer
kind: Issuer
name: {{ default "nfd-ca-issuer" .Values.tls.certManager.issuerName }}
kind: {{ default "Issuer" .Values.tls.certManager.issuerKind }}
group: cert-manager.io
{{- end }}

Expand All @@ -60,8 +60,8 @@ spec:
dnsNames:
- {{ include "node-feature-discovery.fullname" . }}-topology-updater.{{ include "node-feature-discovery.namespace" . }}.svc.cluster.local
issuerRef:
name: nfd-ca-issuer
kind: Issuer
name: {{ default "nfd-ca-issuer" .Values.tls.certManager.issuerName }}
kind: {{ default "Issuer" .Values.tls.certManager.issuerKind }}
group: cert-manager.io
{{- end }}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if .Values.tls.certManager }}
{{- if and .Values.tls.certManager.enable (not .Values.tls.certManager.issuerName ) }}
# See https://cert-manager.io/docs/configuration/selfsigned/#bootstrapping-ca-issuers
# - Create a self signed issuer
# - Use this to create a CA cert
Expand Down
5 changes: 4 additions & 1 deletion deployment/helm/node-feature-discovery/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,10 @@ gc:
# need to manually, or otherwise, provision the TLS certs as secrets
tls:
enable: false
certManager: false
certManager:
enable: false
issuerKind:
issuerName:

prometheus:
enable: false
Expand Down

0 comments on commit 957aca5

Please sign in to comment.