mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-13 18:04:20 -05:00
968cdc1a38
* cli: move internal packages Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com> * cli: fix buildfiles Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com> * bazel: fix exclude dir Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com> * cli: move back libraries that will not be used by TF provider Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com> --------- Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com>
31 lines
1.1 KiB
YAML
31 lines
1.1 KiB
YAML
{{- if .Values.dashboards.enabled }}
|
|
{{- $files := .Files.Glob "files/cilium-agent/dashboards/*.json" }}
|
|
{{- range $path, $fileContents := $files }}
|
|
{{- $dashboardName := regexReplaceAll "(^.*/)(.*)\\.json$" $path "${2}" }}
|
|
---
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: {{ $dashboardName | trunc 63 | trimSuffix "-" }}
|
|
namespace: {{ $.Values.dashboards.namespace | default $.Release.Namespace }}
|
|
labels:
|
|
k8s-app: cilium
|
|
app.kubernetes.io/name: cilium-agent
|
|
app.kubernetes.io/part-of: cilium
|
|
{{- if $.Values.dashboards.label }}
|
|
{{ $.Values.dashboards.label }}: {{ ternary $.Values.dashboards.labelValue "1" (not (empty $.Values.dashboards.labelValue)) | quote }}
|
|
{{- end }}
|
|
{{- if or $.Values.dashboards.annotations $.Values.annotations }}
|
|
annotations:
|
|
{{- with $.Values.dashboards.annotations }}
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
{{- with $.Values.annotations }}
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
{{- end }}
|
|
data:
|
|
{{ $dashboardName }}.json: {{ $.Files.Get $path | toJson }}
|
|
{{- end }}
|
|
{{- end }}
|