2020-11-26 13:21:10 +00:00
|
|
|
{{- define "cert-manager-values" }}
|
2020-11-26 17:37:10 +00:00
|
|
|
|
2020-11-26 13:21:10 +00:00
|
|
|
localCA:
|
|
|
|
enabled: true
|
2021-10-21 15:10:13 +00:00
|
|
|
|
2020-11-26 13:21:10 +00:00
|
|
|
cert-manager:
|
2023-05-03 13:26:54 +00:00
|
|
|
{{- if not .Values.global.highAvailable }}
|
|
|
|
strategy:
|
|
|
|
type: Recreate
|
|
|
|
{{- end }}
|
|
|
|
|
2024-08-09 10:45:27 +00:00
|
|
|
{{- if eq .Values.global.platform "aws" }}
|
2024-12-15 15:56:15 +00:00
|
|
|
{{- include "kubezero-lib.control-plane" . | nindent 2 }}
|
2024-08-09 10:45:27 +00:00
|
|
|
|
|
|
|
webhook:
|
2024-12-15 15:56:15 +00:00
|
|
|
{{- include "kubezero-lib.control-plane" . | nindent 4 }}
|
2024-08-09 10:45:27 +00:00
|
|
|
|
|
|
|
cainjector:
|
2024-12-15 15:56:15 +00:00
|
|
|
{{- include "kubezero-lib.control-plane" . | nindent 4 }}
|
2024-08-09 10:45:27 +00:00
|
|
|
|
2021-06-30 10:37:05 +00:00
|
|
|
extraEnv:
|
2024-08-24 10:19:39 +00:00
|
|
|
- name: AWS_REGION
|
|
|
|
value: {{ .Values.global.aws.region }}
|
|
|
|
{{ with index .Values "cert-manager" "IamArn" }}
|
2021-06-30 10:37:05 +00:00
|
|
|
- name: AWS_ROLE_ARN
|
|
|
|
value: "{{ . }}"
|
|
|
|
- name: AWS_WEB_IDENTITY_TOKEN_FILE
|
|
|
|
value: "/var/run/secrets/sts.amazonaws.com/serviceaccount/token"
|
|
|
|
- name: AWS_STS_REGIONAL_ENDPOINTS
|
|
|
|
value: regional
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
- name: aws-token
|
|
|
|
projected:
|
|
|
|
sources:
|
|
|
|
- serviceAccountToken:
|
|
|
|
path: token
|
|
|
|
expirationSeconds: 86400
|
|
|
|
audience: "sts.amazonaws.com"
|
|
|
|
|
|
|
|
volumeMounts:
|
|
|
|
- name: aws-token
|
|
|
|
mountPath: "/var/run/secrets/sts.amazonaws.com/serviceaccount/"
|
|
|
|
readOnly: true
|
2024-08-09 10:45:27 +00:00
|
|
|
{{- end }}
|
|
|
|
|
|
|
|
{{- end }}
|
|
|
|
|
|
|
|
{{- if eq .Values.global.platform "gke" }}
|
|
|
|
serviceAccount:
|
|
|
|
annotations:
|
|
|
|
iam.gke.io/gcp-service-account: "dns01-solver@{{ .Values.global.gcp.projectId }}.iam.gserviceaccount.com"
|
|
|
|
{{- end }}
|
|
|
|
|
|
|
|
prometheus:
|
|
|
|
servicemonitor:
|
|
|
|
enabled: {{ $.Values.metrics.enabled }}
|
2020-11-26 13:21:10 +00:00
|
|
|
|
|
|
|
{{- with index .Values "cert-manager" "clusterIssuer" }}
|
|
|
|
clusterIssuer:
|
|
|
|
{{- . | toYaml | nindent 2 }}
|
|
|
|
{{- end }}
|
|
|
|
|
|
|
|
{{- end }}
|
|
|
|
|
|
|
|
{{- define "cert-manager-argo" }}
|
2020-05-05 14:21:09 +00:00
|
|
|
{{- end }}
|
2020-11-26 13:21:10 +00:00
|
|
|
|
|
|
|
{{ include "kubezero-app.app" . }}
|