From afa7f9db8ff650e4dafe9ac72d6115bceac9102f Mon Sep 17 00:00:00 2001 From: Cristiano Saggin <86964015+RH-csaggin@users.noreply.github.com> Date: Thu, 21 Nov 2024 16:12:40 +0100 Subject: [PATCH] OBS Grafana Folder creation Adding folder with Admin permissions for RBAC - ai4dd.yaml - ibm-autopilot.yaml - ope.yaml --- .../nerc-ocp-obs/grafanafolder/ai4dd.yaml | 19 +++++++++++++++++++ .../grafanafolder/ibm-autopilot.yaml | 19 +++++++++++++++++++ .../grafanafolder/kustomization.yaml | 7 +++++++ .../nerc-ocp-obs/grafanafolder/ope.yaml | 19 +++++++++++++++++++ .../overlays/nerc-ocp-obs/kustomization.yaml | 1 + 5 files changed, 65 insertions(+) create mode 100644 grafana/overlays/nerc-ocp-obs/grafanafolder/ai4dd.yaml create mode 100644 grafana/overlays/nerc-ocp-obs/grafanafolder/ibm-autopilot.yaml create mode 100644 grafana/overlays/nerc-ocp-obs/grafanafolder/kustomization.yaml create mode 100644 grafana/overlays/nerc-ocp-obs/grafanafolder/ope.yaml diff --git a/grafana/overlays/nerc-ocp-obs/grafanafolder/ai4dd.yaml b/grafana/overlays/nerc-ocp-obs/grafanafolder/ai4dd.yaml new file mode 100644 index 00000000..f977e383 --- /dev/null +++ b/grafana/overlays/nerc-ocp-obs/grafanafolder/ai4dd.yaml @@ -0,0 +1,19 @@ +apiVersion: grafana.integreatly.org/v1beta1 +kind: GrafanaFolder +metadata: + name: "ai4dd" + namespace: grafana +spec: + title: "AI4DD" + instanceSelector: + matchLabels: + dashboards: "grafana" + permissions: | + { + "items": [ + { + "role": "Admin", + "permission": 4 + } + ] + } diff --git a/grafana/overlays/nerc-ocp-obs/grafanafolder/ibm-autopilot.yaml b/grafana/overlays/nerc-ocp-obs/grafanafolder/ibm-autopilot.yaml new file mode 100644 index 00000000..65558c03 --- /dev/null +++ b/grafana/overlays/nerc-ocp-obs/grafanafolder/ibm-autopilot.yaml @@ -0,0 +1,19 @@ +apiVersion: grafana.integreatly.org/v1beta1 +kind: GrafanaFolder +metadata: + name: "ibmautopilot" + namespace: grafana +spec: + title: "IBM autopilot" + instanceSelector: + matchLabels: + dashboards: "grafana" + permissions: | + { + "items": [ + { + "role": "Admin", + "permission": 4 + } + ] + } diff --git a/grafana/overlays/nerc-ocp-obs/grafanafolder/kustomization.yaml b/grafana/overlays/nerc-ocp-obs/grafanafolder/kustomization.yaml new file mode 100644 index 00000000..a64191ae --- /dev/null +++ b/grafana/overlays/nerc-ocp-obs/grafanafolder/kustomization.yaml @@ -0,0 +1,7 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +resources: + - ope.yaml + - ibm-autopilot.yaml + - ai4dd.yaml diff --git a/grafana/overlays/nerc-ocp-obs/grafanafolder/ope.yaml b/grafana/overlays/nerc-ocp-obs/grafanafolder/ope.yaml new file mode 100644 index 00000000..d54af01f --- /dev/null +++ b/grafana/overlays/nerc-ocp-obs/grafanafolder/ope.yaml @@ -0,0 +1,19 @@ +apiVersion: grafana.integreatly.org/v1beta1 +kind: GrafanaFolder +metadata: + name: ope + namespace: grafana +spec: + title: "OPE" + instanceSelector: + matchLabels: + dashboards: "grafana" + permissions: | + { + "items": [ + { + "role": "Admin", + "permission": 4 + } + ] + } diff --git a/grafana/overlays/nerc-ocp-obs/kustomization.yaml b/grafana/overlays/nerc-ocp-obs/kustomization.yaml index 25704d1b..5a219a10 100644 --- a/grafana/overlays/nerc-ocp-obs/kustomization.yaml +++ b/grafana/overlays/nerc-ocp-obs/kustomization.yaml @@ -8,6 +8,7 @@ resources: - grafanas - grafanadatasources - grafanadashboards + - grafanafolder patches: - path: patches/grafana-route.yaml