Skip to content

Commit

Permalink
Restructure the manifest files
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewballantyne committed Jun 14, 2024
1 parent 48a6201 commit 7c392ba
Show file tree
Hide file tree
Showing 106 changed files with 56 additions and 146 deletions.
2 changes: 1 addition & 1 deletion docs/architecture.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[Dashboard Deployment `containers`]: ../manifests/base/deployment.yaml
[Dashboard Deployment `containers`]: ../manifests/common/base/deployment.yaml
[OpenShift OAuth Proxy repo]: https://github.com/openshift/oauth-proxy
[OpenShift SDK]: https://github.com/openshift/dynamic-plugin-sdk
[SDK tidbits]: SDK.md
Expand Down
2 changes: 1 addition & 1 deletion docs/dev-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ This is the default context for running a local UI. Make sure you build the pro

> Note: You must be logged-in with `oc` before you can start the backend. Details for that are in the the [contribution guidelines](../CONTRIBUTING.md#give-your-dev-env-access).

> Note: The CLI logged-in user will need to be a `cluster-admin` level user on the cluster to mimic the Dashboard Service Account level of permissions. You could also bind the [cluster role](../manifests/base/cluster-role.yaml) to your user as we do with the service account [binding](../manifests/base/cluster-role-binding.yaml).
> Note: The CLI logged-in user will need to be a `cluster-admin` level user on the cluster to mimic the Dashboard Service Account level of permissions. You could also bind the [cluster role](../manifests/common/base/cluster-role.yaml) to your user as we do with the service account [binding](../manifests/common/base/cluster-role-binding.yaml).

```bash
npm run start
Expand Down
2 changes: 1 addition & 1 deletion docs/release-steps.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[base/kustomization.yaml]: ../manifests/base/kustomization.yaml
[base/kustomization.yaml]: ../manifests/common/base/kustomization.yaml
[quay repo]: https://quay.io/repository/opendatahub/odh-dashboard?tab=tags
[drafting a new release]: https://github.com/opendatahub-io/odh-dashboard/releases/new
[semver]: https://semver.org/
Expand Down
18 changes: 8 additions & 10 deletions manifests/README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
# Dashboard
# Manifests

The Open Data Hub Dashboard component installs a UI which
They run on Kustomize. There are 3 types of deployments.

- Shows what's installed
- Show's what's available for installation
- Links to component UIs
- Links to component documentation
- Open Data Hub (`./odh`)
- Red Hat OpenShift AI (`./rhoai`)
- RHOAI Managed (`./rhoai/addon`)
- RHOAI Self Managed (`./rhoai/onprem`)

For more information, visit the project [GitHub repo](https://github.com/opendatahub-io/odh-dashboard).
The `common` & `./rhoai/shared` are two locations where the bases are found. Base folder has the resources or overrides (for RHOAI) to deploy the dashboard.

### Folders
1. base: contains all the necessary yaml files to install the dashboard
## Installation

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

```
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
9 changes: 9 additions & 0 deletions manifests/common/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
commonLabels:
app: odh-dashboard
app.kubernetes.io/part-of: odh-dashboard
resources:
- ./apps
- ./base
- ./crd
File renamed without changes.
File renamed without changes.
8 changes: 8 additions & 0 deletions manifests/odh/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
commonLabels:
app: odh-dashboard
app.kubernetes.io/part-of: odh-dashboard
resources:
- ../common
- ./consolelink
6 changes: 0 additions & 6 deletions manifests/overlays/dev/kustomization.yaml

This file was deleted.

3 changes: 0 additions & 3 deletions manifests/overlays/incubation/deployment.yaml

This file was deleted.

11 changes: 0 additions & 11 deletions manifests/overlays/incubation/kustomization.yaml

This file was deleted.

88 changes: 0 additions & 88 deletions manifests/overlays/odhdashboardconfig/odh-dashboard-config.yaml

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions manifests/overlays/performance/deployment.yaml

This file was deleted.

11 changes: 0 additions & 11 deletions manifests/overlays/performance/kustomization.yaml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ commonLabels:
app: odh-dashboard
app.kubernetes.io/part-of: odh-dashboard
resources:
- ../base
- ./nvidia
- ./rhoam
- ./starburst
8 changes: 8 additions & 0 deletions manifests/rhoai/addon/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
commonLabels:
app: odh-dashboard
app.kubernetes.io/part-of: odh-dashboard
resources:
- ../shared
- ./apps
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@ commonLabels:
app: odh-dashboard
app.kubernetes.io/part-of: odh-dashboard
resources:
- ../base
- ./starburst-enterprise
7 changes: 7 additions & 0 deletions manifests/rhoai/onprem/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
commonLabels:
app: odh-dashboard
app.kubernetes.io/part-of: odh-dashboard
resources:
- ../shared
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ commonLabels:
app: odh-dashboard
app.kubernetes.io/part-of: odh-dashboard
resources:
- ../../../apps
- ./aikit
- ./anaconda-ce
- ./elastic
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ commonLabels:
app: rhods-dashboard
app.kubernetes.io/part-of: rhods-dashboard
resources:
- ../../consolelink
- ../../odh/consolelink
patchesJson6902:
- path: consolelink.yaml
target:
version: v1
kind: ConsoleLink
name: odhlink
name: odhlink
11 changes: 11 additions & 0 deletions manifests/rhoai/shared/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
commonLabels:
app: odh-dashboard
app.kubernetes.io/part-of: odh-dashboard
resources:
- ../../common
- ./apps
- ./base
- ./consolelink
- ./odhdashboardconfig

0 comments on commit 7c392ba

Please sign in to comment.