Skip to content

Commit

Permalink
Add Dashboard CRDs
Browse files Browse the repository at this point in the history
  • Loading branch information
VaishnaviHire committed Jan 9, 2023
1 parent 87163c3 commit 5f6a531
Show file tree
Hide file tree
Showing 6 changed files with 556 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,166 @@
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.4.1
creationTimestamp: null
name: odhapplications.dashboard.opendatahub.io
spec:
group: dashboard.opendatahub.io
names:
kind: OdhApplication
listKind: OdhApplicationList
plural: odhapplications
singular: odhapplication
scope: Namespaced
versions:
- name: v1
schema:
openAPIV3Schema:
description: OdhApplication is the Schema for the odhapplications
API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: OdhApplicationSpec defines the desired state of OdhApplication
properties:
beta:
type: boolean
betaText:
type: string
betaTitle:
type: string
category:
type: string
comingSoon:
type: boolean
consoleLink:
type: string
csvName:
type: string
description:
type: string
displayName:
type: string
docsLink:
type: string
enable:
properties:
actionLabel:
type: string
description:
type: string
link:
type: string
linkPreface:
type: string
title:
type: string
validationConfigMap:
type: string
validationJob:
type: string
validationSecret:
type: string
variableDisplayText:
additionalProperties:
type: string
type: object
variableHelpText:
additionalProperties:
type: string
type: object
variables:
additionalProperties:
type: string
type: object
type: object
enableCR:
properties:
field:
type: string
group:
type: string
name:
type: string
namespace:
type: string
plural:
type: string
value:
type: string
version:
type: string
type: object
endpoint:
type: string
featureFlag:
type: string
getStartedLink:
type: string
getStartedMarkDown:
type: string
img:
type: string
isEnabled:
type: boolean
kfdefApplications:
items:
type: string
type: array
link:
type: string
provider:
type: string
quickStart:
type: string
internalRoute:
type: string
route:
type: string
routeNamespace:
type: string
routeSuffix:
type: string
serviceName:
type: string
support:
type: string
required:
- description
- displayName
- docsLink
- getStartedLink
- getStartedMarkDown
- img
- provider
- support
type: object
status:
description: OdhApplicationStatus defines the observed state of OdhApplication
properties:
enabled:
type: boolean
type: object
type: object
served: true
storage: true
subresources:
status: {}
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: odhdashboardconfigs.opendatahub.io
spec:
group: opendatahub.io
scope: Namespaced
names:
plural: odhdashboardconfigs
singular: odhdashboardconfig
kind: OdhDashboardConfig
versions:
- name: v1alpha
served: true
storage: true
schema:
openAPIV3Schema:
type: object
required:
- spec
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
disableUserManagement:
type: boolean
groupsConfig:
type: object
required:
- adminGroups
- allowedGroups
properties:
adminGroups:
type: string
allowedGroups:
type: string
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
required:
- enabled
properties:
enabled:
type: boolean
notebookNamespace:
type: string
pvcSize:
type: string
notebookTolerationSettings:
type: object
properties:
enabled:
type: boolean
key:
type: string
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.4.1
creationTimestamp: null
name: odhdocuments.dashboard.opendatahub.io
spec:
group: dashboard.opendatahub.io
names:
kind: OdhDocument
listKind: OdhDocumentList
plural: odhdocuments
singular: odhdocument
scope: Namespaced
versions:
- name: v1
schema:
openAPIV3Schema:
description: OdhDocument is the Schema for the odhdocuments
API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: OdhDocumentSpec defines the desired state of OdhDocument
properties:
appName:
type: string
description:
type: string
displayName:
type: string
durationMinutes:
type: integer
featureFlag:
type: string
icon:
type: string
img:
type: string
provider:
type: string
type:
type: string
url:
type: string
required:
- description
- displayName
- durationMinutes
- type
- url
type: object
status:
description: OdhDocumentStatus defines the observed state of OdhDocument
properties:
enabled:
type: boolean
type: object
type: object
served: true
storage: true
subresources:
status: {}
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []
Loading

0 comments on commit 5f6a531

Please sign in to comment.