UpstreamAuthority cert-manager support (#82)
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
{{ $namespace := .Release.Namespace }}
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
@@ -71,6 +72,22 @@ data:
|
||||
}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
{{- with .Values.upstreamAuthority.certManager }}
|
||||
{{- if eq (.enabled | toString) "true" }}
|
||||
UpstreamAuthority "cert-manager" {
|
||||
plugin_data {
|
||||
issuer_name = {{ .issuer_name | quote }}
|
||||
issuer_kind = {{ .issuer_kind | quote }}
|
||||
issuer_group = {{ .issuer_group | quote }}
|
||||
namespace = {{ default $namespace .namespace | quote }}
|
||||
{{- if ne .kube_config_file "" }}
|
||||
kube_config_file = {{ .kube_config_file | quote }}
|
||||
{{- end }}
|
||||
}
|
||||
}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
}
|
||||
|
||||
health_checks {
|
||||
|
||||
@@ -18,6 +18,18 @@ rules:
|
||||
verbs:
|
||||
- get
|
||||
- patch
|
||||
{{- if and .Values.upstreamAuthority.certManager.enabled .Values.upstreamAuthority.certManager.rbac.create }}
|
||||
- apiGroups: ["cert-manager.io"]
|
||||
resources:
|
||||
- certificaterequests
|
||||
verbs:
|
||||
- list
|
||||
- get
|
||||
- create
|
||||
- delete
|
||||
- patch
|
||||
- update
|
||||
{{- end }}
|
||||
---
|
||||
kind: RoleBinding
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
|
||||
Reference in New Issue
Block a user