Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Commit

Permalink
Update odh-dashboard CI tests
Browse files Browse the repository at this point in the history
- Add workaround for dashboard notebook failures due to checks for
  downstream features
- Update dashboard test to install CRDs if they don't exist
  • Loading branch information
LaVLaS committed Jan 20, 2023
1 parent 662d501 commit a86c4af
Show file tree
Hide file tree
Showing 7 changed files with 580 additions and 1 deletion.
10 changes: 10 additions & 0 deletions tests/resources/odh-dashboard/crd/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
commonLabels:
app: odh-dashboard
app.kubernetes.io/part-of: odh-dashboard
resources:
- odh-dashboard-crd.yaml
- odh-quick-start-crd.yaml
- odh-document-crd.yaml
- odh-application-crd.yaml
166 changes: 166 additions & 0 deletions tests/resources/odh-dashboard/crd/odh-application-crd.yaml
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: []
98 changes: 98 additions & 0 deletions tests/resources/odh-dashboard/crd/odh-dashboard-crd.yaml
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
81 changes: 81 additions & 0 deletions tests/resources/odh-dashboard/crd/odh-document-crd.yaml
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 a86c4af

Please sign in to comment.