feat: platform config API (#2052) (#6303)
(cherry picked from commit c1259aff8b)
Signed-off-by: hongming <coder.scala@gmail.com>
Signed-off-by: peng wu <2030047311@qq.com>
Co-authored-by: hongming <hongming@kubesphere.io>
18 lines
677 B
YAML
18 lines
677 B
YAML
{{- if eq (include "role" .) "host" }}
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: io.kubesphere.config.platformconfig.telemetry
|
|
namespace: {{ .Release.Namespace | quote }}
|
|
type: config.kubesphere.io/generic-platform-config
|
|
stringData:
|
|
configuration.yaml: |
|
|
enabled: {{ include "telemetry.enabled" . }}
|
|
{{- if eq .Values.cloud.env "clouddev.kubesphere.io" }}
|
|
endpoint: "https://clouddev.kubesphere.io"
|
|
{{- else if eq .Values.cloud.env "kubesphere.cloud" }}
|
|
endpoint: "https://kubesphere.cloud"
|
|
{{- else if and .Values.cloud.customEnv .Values.cloud.customEnv.url }}
|
|
endpoint: {{ $.Values.cloud.customEnv.url | quote }}
|
|
{{- end }}
|
|
{{- end }} |