mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-15 10:54:29 -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.operator.dashboards.enabled }}
|
|
{{- $files := .Files.Glob "files/cilium-operator/dashboards/*.json" }}
|
|
{{- range $path, $fileContents := $files }}
|
|
{{- $dashboardName := regexReplaceAll "(^.*/)(.*)\\.json$" $path "${2}" }}
|
|
---
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: {{ $dashboardName | trunc 63 | trimSuffix "-" }}
|
|
namespace: {{ $.Values.operator.dashboards.namespace | default $.Release.Namespace }}
|
|
labels:
|
|
k8s-app: cilium
|
|
app.kubernetes.io/name: cilium-operator
|
|
app.kubernetes.io/part-of: cilium
|
|
{{- if $.Values.operator.dashboards.label }}
|
|
{{ $.Values.operator.dashboards.label }}: {{ ternary $.Values.operator.dashboards.labelValue "1" (not (empty $.Values.operator.dashboards.labelValue)) | quote }}
|
|
{{- end }}
|
|
{{- if or $.Values.operator.dashboards.annotations $.Values.operator.annotations }}
|
|
annotations:
|
|
{{- with $.Values.operator.dashboards.annotations }}
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
{{- with .Values.operator.annotations }}
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
{{- end }}
|
|
data:
|
|
{{ $dashboardName }}.json: {{ $.Files.Get $path | toJson }}
|
|
{{- end }}
|
|
{{- end }}
|