Skip to content

The Unified and Autonomous Development Platform

feat: add secret for trustCerts

Khaliqd0891c4b5edc
diff --git a/server-product/helm/templates/cert-secret.yaml b/server-product/helm/templates/cert-secret.yaml
new file mode 100644
index 0000000000..c1b5065214
--- /dev/null
+++ b/server-product/helm/templates/cert-secret.yaml
@@ -0,0 +1,13 @@
+{{- if and .Values.oneDevServer.trustCerts.enabled (not .Values.oneDevServer.trustCerts.existingConfigmapName) }}
+apiVersion: v1
+kind: Secret
+type: Opaque
+metadata:
+ name: {{ include "ods.fullname" . }}-certs
+ namespace: {{ .Release.Namespace }}
+ labels: {{ include "ods.labels" . | nindent 4 }}
+ annotations:
+ checksum/secret: {{ tpl (toYaml .Values.oneDevServer.trustCerts.path) . | sha256sum }}
+data:
+ cert.pem: {{ .Values.oneDevServer.trustCerts.path | b64enc }}
+{{- end }}