Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
charts: add the missing dashboard configmap
Browse files Browse the repository at this point in the history
Signed-off-by: Xinzhao Xu <[email protected]>
iawia002 committed Sep 12, 2024
1 parent 60a4bcb commit fa4da7e
Showing 2 changed files with 172 additions and 1 deletion.
162 changes: 162 additions & 0 deletions charts/karmada-dashboard/templates/karmada-dashboard-configmap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: karmada-dashboard-configmap
namespace: {{ include "karmada-dashboard.namespace" . }}
data:
dev.yaml: |-
docker_registries: []
chart_registries: []
menu_configs:
- path: /overview
enable: true
sidebar_key: OVERVIEW
- path: /multicloud-resource-manage
enable: true
sidebar_key: MULTICLOUD-RESOURCE-MANAGE
children:
- path: namespace
enable: true
sidebar_key: NAMESPACE
- path: workload
enable: true
sidebar_key: WORKLOAD
- path: service
enable: true
sidebar_key: SERVICE
- path: config
enable: true
sidebar_key: CONFIG
- path: /multicloud-policy-manage
enable: true
sidebar_key: MULTICLOUD-POLICY-MANAGE
children:
- path: propagation-policy
enable: true
sidebar_key: PROPAGATION-POLICY
- path: override-policy
enable: true
sidebar_key: OVERRIDE-POLICY
- path: /cluster-manage
enable: true
sidebar_key: CLUSTER-MANAGE
- path: /basic-config
enable: true
sidebar_key: BASIC-CONFIG
children:
- path: oem
enable: false
sidebar_key: OEM
- path: upgrade
enable: false
sidebar_key: UPGRADE
- path: karmada-config
enable: true
sidebar_key: KARMADA-CONFIG
- path: helm
enable: true
sidebar_key: HELM
- path: registry
enable: true
sidebar_key: REGISTRY
- path: /advanced-config
enable: false
sidebar_key: ADVANCED-CONFIG
children:
- path: failover
enable: true
sidebar_key: FAILOVER
- path: reschedule
enable: true
sidebar_key: RESCHEDULE
- path: permission
enable: true
sidebar_key: PERMISSION
- path: /addon
enable: false
sidebar_key: ADDON
children:
- path: buildin
enable: true
sidebar_key: BUILDIN
- path: thirdparty
enable: true
sidebar_key: THIRDPARTY
prod.yaml: |-
docker_registries: [ ]
chart_registries: [ ]
menu_configs:
- path: /overview
enable: true
sidebar_key: OVERVIEW
- path: /multicloud-resource-manage
enable: true
sidebar_key: MULTICLOUD-RESOURCE-MANAGE
children:
- path: namespace
enable: true
sidebar_key: NAMESPACE
- path: workload
enable: true
sidebar_key: WORKLOAD
- path: service
enable: true
sidebar_key: SERVICE
- path: config
enable: true
sidebar_key: CONFIG
- path: /multicloud-policy-manage
enable: true
sidebar_key: MULTICLOUD-POLICY-MANAGE
children:
- path: propagation-policy
enable: true
sidebar_key: PROPAGATION-POLICY
- path: override-policy
enable: true
sidebar_key: OVERRIDE-POLICY
- path: /cluster-manage
enable: true
sidebar_key: CLUSTER-MANAGE
- path: /basic-config
enable: false
sidebar_key: BASIC-CONFIG
children:
- path: oem
enable: false
sidebar_key: OEM
- path: upgrade
enable: false
sidebar_key: UPGRADE
- path: karmada-config
enable: true
sidebar_key: KARMADA-CONFIG
- path: helm
enable: true
sidebar_key: HELM
- path: registry
enable: true
sidebar_key: REGISTRY
- path: /advanced-config
enable: false
sidebar_key: ADVANCED-CONFIG
children:
- path: failover
enable: true
sidebar_key: FAILOVER
- path: reschedule
enable: true
sidebar_key: RESCHEDULE
- path: permission
enable: true
sidebar_key: PERMISSION
- path: /addon
enable: false
sidebar_key: ADDON
children:
- path: buildin
enable: true
sidebar_key: BUILDIN
- path: thirdparty
enable: true
sidebar_key: THIRDPARTY
11 changes: 10 additions & 1 deletion charts/karmada-dashboard/templates/karmada-dashboard-web.yaml
Original file line number Diff line number Diff line change
@@ -66,6 +66,11 @@ spec:
- --static-dir=/static
- --insecure-bind-address=0.0.0.0
- --bind-address=0.0.0.0
- --dashboard-config-path=/config/dashboard-config.yaml
volumeMounts:
- name: dashboard-config
subPath: prod.yaml
mountPath: /config/dashboard-config.yaml
{{- with .Values.web.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
@@ -78,6 +83,10 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
volumes:
- name: dashboard-config
configMap:
name: karmada-dashboard-configmap

{{ if .Values.web.podDisruptionBudget }}
---
@@ -93,4 +102,4 @@ spec:
matchLabels:
{{- include "karmada-dashboard.web.labels" . | nindent 6 }}
{{ toYaml .Values.web.podDisruptionBudget | nindent 2 }}
{{- end -}}
{{- end -}}

0 comments on commit fa4da7e

Please sign in to comment.