Skip to content

Commit

Permalink
Add preset example yamls (#242)
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha authored Sep 7, 2023
1 parent cab7e0d commit 4246087
Show file tree
Hide file tree
Showing 3 changed files with 248 additions and 0 deletions.
29 changes: 29 additions & 0 deletions artifacts/presets/custom-monitoring-presets.yaml
Original file line number Diff line number Diff line change
@@ -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
29 changes: 29 additions & 0 deletions artifacts/presets/monitoring-presets.yaml
Original file line number Diff line number Diff line change
@@ -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
190 changes: 190 additions & 0 deletions artifacts/presets/pg-ed.yaml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 4246087

Please sign in to comment.