This repository has been archived by the owner on Jan 31, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 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
Showing
7 changed files
with
580 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
166
tests/resources/odh-dashboard/crd/odh-application-crd.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: [] |
Oops, something went wrong.