Skip to content

Commit

Permalink
Merge pull request #498 from Gkrumbach07/update-dash
Browse files Browse the repository at this point in the history
[UPSTREAM] updated dashboard manifests
  • Loading branch information
andrewballantyne authored Oct 2, 2023
2 parents 97857a3 + 7c87e4b commit 34e1982
Show file tree
Hide file tree
Showing 9 changed files with 107 additions and 16 deletions.
8 changes: 2 additions & 6 deletions odh-dashboard/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,13 @@ For more information, visit the project [GitHub repo](https://github.com/opendat

### Folders
1. base: contains all the necessary yaml files to install the dashboard
2. overlays/authentication: Contains the necessary yaml files to install the
Open Data Hub Dashboard configured to require users to authenticate to the
OpenShift cluster before they can access the service
3. consolelink: only container consolelink manifests

##### Installation
Use the `kustomize` tool to process the manifest for the `oc apply` command.

```
# Parse the authentication overlays to deploy ODH Dashboard WITHOUT the required configs for groups
cd manifests/overlays/authentication
# Parse the base manifest to deploy ODH Dashboard WITHOUT the required configs for groups
cd manifests/base
kustomize edit set namespace <DESTINATION NAMESPACE> # Set the namespace in the manifest where you want to deploy the dashboard
kustomize build . | oc apply -f -
```
Expand Down
7 changes: 7 additions & 0 deletions odh-dashboard/base/cluster-role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: odh-dashboard
rules:
- verbs:
- get
- list
apiGroups:
- ''
resources:
- nodes
- verbs:
- get
- list
Expand Down
26 changes: 26 additions & 0 deletions odh-dashboard/base/fetch-accelerators.rbac.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: fetch-accelerators-role
rules:
- apiGroups:
- dashboard.opendatahub.io
verbs:
- get
- list
- watch
resources:
- acceleratorprofiles
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: accelerators
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: fetch-accelerators-role
subjects:
- apiGroup: rbac.authorization.k8s.io
kind: Group
name: system:authenticated
13 changes: 7 additions & 6 deletions odh-dashboard/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@ resources:
- image-puller.clusterrolebinding.yaml
- model-serving-role.yaml
- model-serving-role-binding.yaml
- fetch-accelerators.rbac.yaml
images:
- name: odh-dashboard
newName: quay.io/opendatahub/odh-dashboard
newTag: main
- name: oauth-proxy
newName: registry.redhat.io/openshift4/ose-oauth-proxy
digest: sha256:ab112105ac37352a2a4916a39d6736f5db6ab4c29bad4467de8d613e80e9bb33
- name: odh-dashboard
newName: quay.io/opendatahub/odh-dashboard
newTag: main
- name: oauth-proxy
newName: registry.redhat.io/openshift4/ose-oauth-proxy
digest: sha256:ab112105ac37352a2a4916a39d6736f5db6ab4c29bad4467de8d613e80e9bb33
8 changes: 8 additions & 0 deletions odh-dashboard/base/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: odh-dashboard
rules:
- verbs:
- create
- get
- list
apiGroups:
- dashboard.opendatahub.io
resources:
- acceleratorprofiles
- apiGroups:
- route.openshift.io
resources:
Expand Down
54 changes: 54 additions & 0 deletions odh-dashboard/crd/acceleratorprofiles.opendatahub.io.crd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: acceleratorprofiles.dashboard.opendatahub.io
spec:
group: dashboard.opendatahub.io
scope: Namespaced
names:
plural: acceleratorprofiles
singular: acceleratorprofile
kind: AcceleratorProfile
versions:
- name: v1alpha
served: true
storage: true
schema:
openAPIV3Schema:
type: object
required:
- spec
properties:
spec:
type: object
required:
- displayName
- enabled
- identifier
properties:
displayName:
type: string
enabled:
type: boolean
identifier:
type: string
description:
type: string
tolerations:
type: array
items:
type: object
required:
- key
properties:
key:
type: string
operator:
type: string
value:
type: string
effect:
type: string
tolerationSeconds:
type: integer

1 change: 1 addition & 0 deletions odh-dashboard/crd/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ resources:
- odhquickstarts.console.openshift.io.crd.yaml
- odhdocuments.dashboard.opendatahub.io.crd.yaml
- odhapplications.dashboard.opendatahub.io.crd.yaml
- acceleratorprofiles.opendatahub.io.crd.yaml
3 changes: 1 addition & 2 deletions odh-dashboard/modelserving/ovms-gpu-ootb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ metadata:
labels:
opendatahub.io/dashboard: 'true'
opendatahub.io/ootb: 'true'
opendatahub.io/configurable: 'true'
annotations:
tags: 'ovms,servingruntime'
description: 'OpenVino with GPU Support Model Serving Definition'
Expand Down Expand Up @@ -59,5 +58,5 @@ objects:
version: '1'
- autoSelect: true
name: tensorflow
version: "2"
version: "2"
parameters: []
3 changes: 1 addition & 2 deletions odh-dashboard/modelserving/ovms-ootb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ metadata:
labels:
opendatahub.io/dashboard: 'true'
opendatahub.io/ootb: 'true'
opendatahub.io/configurable: 'true'
annotations:
tags: 'ovms,servingruntime'
description: 'OpenVino Model Serving Definition'
Expand Down Expand Up @@ -57,5 +56,5 @@ objects:
version: '1'
- autoSelect: true
name: tensorflow
version: "2"
version: "2"
parameters: []

0 comments on commit 34e1982

Please sign in to comment.