chore: simplify telemetry config (#6442)
Signed-off-by: hongming <coder.scala@gmail.com> Co-authored-by: hongming <coder.scala@gmail.com>
This commit is contained in:
committed by
GitHub
parent
8799f2c9cc
commit
c3bb02ee9f
@@ -3,16 +3,9 @@ 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 }}
|
||||
Reference in New Issue
Block a user