From 81eac68664e219767b1774d078da6990547b54db Mon Sep 17 00:00:00 2001 From: maroroman Date: Fri, 13 May 2022 11:34:08 +0200 Subject: [PATCH] Add dashboard config CRD --- odh-dashboard/base/kustomization.yaml | 1 + odh-dashboard/base/odh-dashboard-crd.yaml | 103 ++++++++++++++++++++++ 2 files changed, 104 insertions(+) create mode 100644 odh-dashboard/base/odh-dashboard-crd.yaml diff --git a/odh-dashboard/base/kustomization.yaml b/odh-dashboard/base/kustomization.yaml index c033ecf6e..0335627f8 100644 --- a/odh-dashboard/base/kustomization.yaml +++ b/odh-dashboard/base/kustomization.yaml @@ -12,3 +12,4 @@ resources: - deployment.yaml - routes.yaml - service.yaml +- odh-dashboard-crd.yaml diff --git a/odh-dashboard/base/odh-dashboard-crd.yaml b/odh-dashboard/base/odh-dashboard-crd.yaml new file mode 100644 index 000000000..447b1a121 --- /dev/null +++ b/odh-dashboard/base/odh-dashboard-crd.yaml @@ -0,0 +1,103 @@ +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + name: odhdashboards.opendatahub.io +spec: + group: opendatahub.io + scope: Namespaced + names: + plural: odhdashboards + singular: odhdashboard + kind: OdhDashboard + versions: + - name: v1alpha + served: true + storage: true + schema: + openAPIV3Schema: + type: object + properties: + spec: + type: object + properties: + dashboardConfig: + type: object + properties: + enablement: + type: boolean + disableInfo: + type: boolean + disableSupport: + type: boolean + disableClusterManager: + type: boolean + disableTracking: + type: boolean + disableBYONImageStream: + type: boolean + disableISVBadges: + type: boolean + notebookSizes: + type: array + items: + type: object + required: + - name + - resources + properties: + name: + type: string + resources: + type: object + properties: + requests: + type: object + properties: + cpu: + type: string + memory: + type: string + limits: + type: object + properties: + cpu: + type: string + memory: + type: string + notebookController: + type: object + properties: + enabled: + type: boolean + gpuConfig: + type: object + properties: + enabled: + type: boolean + envVarConfig: + type: object + properties: + enabled: + type: boolean + notebookControllerState: + type: array + items: + type: object + properties: + user: + type: string + lastSelectedImage: + type: string + lastSelectedSize: + type: string + environmentVariables: + type: array + items: + type: object + properties: + key: + type: string + value: + type: string + secrets: + type: string