From 4246087f05f59509807571756c1960615113d7f5 Mon Sep 17 00:00:00 2001 From: Tamal Saha Date: Thu, 7 Sep 2023 01:00:16 -0700 Subject: [PATCH] Add preset example yamls (#242) Signed-off-by: Tamal Saha --- .../presets/custom-monitoring-presets.yaml | 29 +++ artifacts/presets/monitoring-presets.yaml | 29 +++ artifacts/presets/pg-ed.yaml | 190 ++++++++++++++++++ 3 files changed, 248 insertions(+) create mode 100644 artifacts/presets/custom-monitoring-presets.yaml create mode 100644 artifacts/presets/monitoring-presets.yaml create mode 100644 artifacts/presets/pg-ed.yaml diff --git a/artifacts/presets/custom-monitoring-presets.yaml b/artifacts/presets/custom-monitoring-presets.yaml new file mode 100644 index 000000000..c571abdbd --- /dev/null +++ b/artifacts/presets/custom-monitoring-presets.yaml @@ -0,0 +1,29 @@ +apiVersion: charts.x-helm.dev/v1alpha1 +kind: ClusterChartPreset +metadata: + annotations: + meta.helm.sh/release-name: monitoring-config + meta.helm.sh/release-namespace: monitoring + creationTimestamp: "2023-09-06T23:11:56Z" + generation: 1 + labels: + app.kubernetes.io/managed-by: Helm + charts.x-helm.dev/is-custom-preset: "true" + helm.toolkit.fluxcd.io/name: opscenter-monitoring-monitoring-config + helm.toolkit.fluxcd.io/namespace: kubeops + name: custom-monitoring-presets + resourceVersion: "1772" + uid: 94d7e767-c2ea-4122-8610-a582b9645d9c +spec: + values: + form: + alert: + enabled: critical + labels: + release: kube-prometheus-stack + spec: + monitoring: + agent: prometheus.io/operator + serviceMonitor: + labels: + release: custom-prometheus-stack diff --git a/artifacts/presets/monitoring-presets.yaml b/artifacts/presets/monitoring-presets.yaml new file mode 100644 index 000000000..0962f5972 --- /dev/null +++ b/artifacts/presets/monitoring-presets.yaml @@ -0,0 +1,29 @@ +apiVersion: charts.x-helm.dev/v1alpha1 +kind: ClusterChartPreset +metadata: + annotations: + meta.helm.sh/release-name: monitoring-config + meta.helm.sh/release-namespace: monitoring + creationTimestamp: "2023-09-06T23:11:56Z" + generation: 1 + labels: + app.kubernetes.io/managed-by: Helm + charts.x-helm.dev/is-default-preset: "true" + helm.toolkit.fluxcd.io/name: opscenter-monitoring-monitoring-config + helm.toolkit.fluxcd.io/namespace: kubeops + name: monitoring-presets + resourceVersion: "1772" + uid: 94d7e767-c2ea-4122-8610-a582b9645d9c +spec: + values: + form: + alert: + enabled: warning + labels: + release: kube-prometheus-stack + spec: + monitoring: + agent: prometheus.io/operator + serviceMonitor: + labels: + release: kube-prometheus-stack diff --git a/artifacts/presets/pg-ed.yaml b/artifacts/presets/pg-ed.yaml new file mode 100644 index 000000000..f1803fae4 --- /dev/null +++ b/artifacts/presets/pg-ed.yaml @@ -0,0 +1,190 @@ +apiVersion: ui.k8s.appscode.com/v1alpha1 +kind: ResourceEditor +metadata: + creationTimestamp: null + labels: + k8s.io/group: kubedb.com + k8s.io/kind: Postgres + k8s.io/resource: postgreses + k8s.io/version: v1alpha2 + name: kubedb.com-v1alpha2-postgreses +spec: + icons: + - src: https://cdn.appscode.com/k8s/icons/kubedb.com/postgreses.svg + type: image/svg+xml + - src: https://cdn.appscode.com/k8s/icons/kubedb.com/postgreses.png + type: image/png + resource: + group: kubedb.com + kind: Postgres + name: postgreses + scope: Namespaced + version: v1alpha2 + ui: + actions: + - items: + - editor: + name: kubedbcom-postgres-editor + sourceRef: + apiGroup: source.toolkit.fluxcd.io + kind: HelmRepository + name: bytebuilders-ui + version: sha256:fa134557f37856af16627027a76f8ae583d1d045e5060d0770b0b4bf0c332cd3 + flow: standalone-edit + icons: + - src: https://cdn.appscode.com/k8s/icons/action-icons/backup.svg + type: image/svg+xml + name: Backup + operationId: edit-self-backupconfiguration + - editor: + name: stashappscodecom-restoresession-editor-options + sourceRef: + apiGroup: source.toolkit.fluxcd.io + kind: HelmRepository + name: bytebuilders-ui + version: sha256:6af06dab31c884bb2d6b982d261d9b61a31ecb59179ec05c6728f6440b840177 + flow: standalone-create + icons: + - src: https://cdn.appscode.com/k8s/icons/action-icons/restore.svg + type: image/svg+xml + name: Restore + operationId: create-restoresession + name: Backups + - items: + - editor: + name: opskubedbcom-postgresopsrequest-editor + sourceRef: + apiGroup: source.toolkit.fluxcd.io + kind: HelmRepository + name: bytebuilders-ui + version: sha256:4a48e2392ab844f0f2b5cb4d26305c44f9fd4737aa56625527ad8596c2e02a1a + flow: standalone-create + icons: + - src: https://cdn.appscode.com/k8s/icons/action-icons/version.svg + type: image/svg+xml + name: Update Version + operationId: create-opsrequest-upgrade + - editor: + name: opskubedbcom-postgresopsrequest-editor + sourceRef: + apiGroup: source.toolkit.fluxcd.io + kind: HelmRepository + name: bytebuilders-ui + version: sha256:4a48e2392ab844f0f2b5cb4d26305c44f9fd4737aa56625527ad8596c2e02a1a + flow: standalone-create + icons: + - src: https://cdn.appscode.com/k8s/icons/action-icons/restart.svg + type: image/svg+xml + name: Restart + operationId: create-opsrequest-restart + - editor: + name: opskubedbcom-postgresopsrequest-editor + sourceRef: + apiGroup: source.toolkit.fluxcd.io + kind: HelmRepository + name: bytebuilders-ui + version: sha256:4a48e2392ab844f0f2b5cb4d26305c44f9fd4737aa56625527ad8596c2e02a1a + flow: standalone-create + icons: + - src: https://cdn.appscode.com/k8s/icons/action-icons/reconfigure.svg + type: image/svg+xml + name: Reconfigure + operationId: create-opsrequest-reconfigure + name: Operations + - items: + - disabledTemplate: | + {{ not (hasKey .spec "standbyMode") }} + editor: + name: opskubedbcom-postgresopsrequest-editor + sourceRef: + apiGroup: source.toolkit.fluxcd.io + kind: HelmRepository + name: bytebuilders-ui + version: sha256:4a48e2392ab844f0f2b5cb4d26305c44f9fd4737aa56625527ad8596c2e02a1a + flow: standalone-create + icons: + - src: https://cdn.appscode.com/k8s/icons/action-icons/horizontal_scale.svg + type: image/svg+xml + name: Horizontal Scale + operationId: create-opsrequest-horizontalscaling + - editor: + name: opskubedbcom-postgresopsrequest-editor + sourceRef: + apiGroup: source.toolkit.fluxcd.io + kind: HelmRepository + name: bytebuilders-ui + version: sha256:4a48e2392ab844f0f2b5cb4d26305c44f9fd4737aa56625527ad8596c2e02a1a + flow: standalone-create + icons: + - src: https://cdn.appscode.com/k8s/icons/action-icons/vertical_scale.svg + type: image/svg+xml + name: Vertical Scale + operationId: create-opsrequest-verticalscaling + - editor: + name: opskubedbcom-postgresopsrequest-editor + sourceRef: + apiGroup: source.toolkit.fluxcd.io + kind: HelmRepository + name: bytebuilders-ui + version: sha256:4a48e2392ab844f0f2b5cb4d26305c44f9fd4737aa56625527ad8596c2e02a1a + flow: standalone-create + icons: + - src: https://cdn.appscode.com/k8s/icons/action-icons/expand.svg + type: image/svg+xml + name: Expand Volume + operationId: create-opsrequest-volumeexpansion + name: Scaling + - items: + - editor: + name: opskubedbcom-postgresopsrequest-editor + sourceRef: + apiGroup: source.toolkit.fluxcd.io + kind: HelmRepository + name: bytebuilders-ui + version: sha256:4a48e2392ab844f0f2b5cb4d26305c44f9fd4737aa56625527ad8596c2e02a1a + flow: standalone-create + icons: + - src: https://cdn.appscode.com/k8s/icons/action-icons/configure.svg + type: image/svg+xml + name: TLS Configure + operationId: create-opsrequest-reconfiguretls + - editor: + name: kubedbcom-postgres-editor + sourceRef: + apiGroup: source.toolkit.fluxcd.io + kind: HelmRepository + name: bytebuilders-ui + version: sha256:fa134557f37856af16627027a76f8ae583d1d045e5060d0770b0b4bf0c332cd3 + flow: standalone-edit + icons: + - src: https://cdn.appscode.com/k8s/icons/action-icons/monitor.svg + type: image/svg+xml + name: Monitoring + operationId: edit-self-monitoring + name: Security & Monitoring + editor: + name: kubedbcom-postgres-editor + sourceRef: + apiGroup: source.toolkit.fluxcd.io + kind: HelmRepository + name: bytebuilders-ui + version: sha256:fa134557f37856af16627027a76f8ae583d1d045e5060d0770b0b4bf0c332cd3 + options: + name: kubedbcom-postgres-editor-options + sourceRef: + apiGroup: source.toolkit.fluxcd.io + kind: HelmRepository + name: bytebuilders-ui + version: sha256:e22514b0c9dd29ac7e973aee1af549cc770cf75a0220e4d2c4124b65e8f56851 + variants: + - name: "default" + title: Default PG + selector: + matchLabels: + charts.x-helm.dev/is-default-preset: "true" + - name: "custom" + title: Custom PG + selector: + matchLabels: + charts.x-helm.dev/is-custom-preset: "true" +