Skip to content

Commit f240b2e

Browse files
authored
Rename template variable from OPENSHIFT to RHOAI (#139)
1 parent 79d10b1 commit f240b2e

6 files changed

+11
-11
lines changed

setup.tmpl/CLUSTER-SETUP.md.tmpl

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Cluster Setup
22

3-
{{ if .OPENSHIFT -}}
3+
{{ if .RHOAI -}}
44
The cluster setup installs Red Hat OpenShift AI and Coscheduler, configures Kueue,
55
cluster roles, and priority classes.
66

@@ -27,7 +27,7 @@ Create `default-priority`, `high-priority`, and `low-priority` priority classes:
2727

2828
MLBatch utilizes Kubernetes Scheduler Plugins to ensure gang scheduling of
2929
multi-Pod workloads and to pack `Pods` onto `Nodes` to reduce GPU fragmentation.
30-
{{ if not .OPENSHIFT -}}
30+
{{ if not .RHOAI -}}
3131
Two options are described below: Coscheduler and Sakkara. You should pick and install one of them
3232
as a secondary scheduler for your cluster.
3333
{{- end }}
@@ -45,7 +45,7 @@ Patch Coscheduler pod priorities:
4545
{{ .KUBECTL }} patch deployment -n scheduler-plugins --type=json --patch-file setup.{{ .VERSION }}/coscheduler-priority-patch.yaml scheduler-plugins-scheduler
4646
```
4747

48-
{{ if not .OPENSHIFT -}}
48+
{{ if not .RHOAI -}}
4949
### Sakkara
5050

5151
[Sakkara](https://github.com/atantawi/scheduler-plugins/tree/sakkara) is an experimental
@@ -58,7 +58,7 @@ helm install sakkara-scheduler --namespace sakkara-scheduler --create-namespace
5858
Optionally, create a config map capturing your cluster's topology as described in the [Sakkara documentation](https://github.com/atantawi/sakkara-deploy/tree/main?tab=readme-ov-file#cluster-topology). This step is optional but recommended for production clusters. If the config map is not present Sakkara will default to a single-level hierarchy containing the Nodes of the cluster.
5959
{{- end }}
6060

61-
{{ if .OPENSHIFT -}}
61+
{{ if .RHOAI -}}
6262
## Red Hat OpenShift AI
6363

6464
Create the Red Hat OpenShift AI subscription:
@@ -207,7 +207,7 @@ helm upgrade autopilot autopilot/autopilot --install --namespace=autopilot --cre
207207

208208
### Enabling Prometheus metrics
209209

210-
{{ if .OPENSHIFT -}}
210+
{{ if .RHOAI -}}
211211
After completing the installation, manually label the namespace to enable metrics to be scraped by Prometheus with the following command:
212212

213213
```bash

setup.tmpl/Kubernetes.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Values for Kubernetes v1.29+
22

3-
OPENSHIFT: false
3+
RHOAI: false
44
VERSION: k8s
55
KUBECTL: kubectl
66
FAIRSHARE: true

setup.tmpl/RHOAI-v2.13.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Values for RHOAI 2.13
22

3-
OPENSHIFT: true
3+
RHOAI: true
44
VERSION: RHOAI-v2.13
55
KUBECTL: oc
66
FAIRSHARE: false

setup.tmpl/RHOAI-v2.16.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Values for RHOAI 2.16
22

3-
OPENSHIFT: true
3+
RHOAI: true
44
VERSION: RHOAI-v2.16
55
KUBECTL: oc
66
FAIRSHARE: true

setup.tmpl/RHOAI-v2.17.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Values for RHOAI 2.17
22

3-
OPENSHIFT: true
3+
RHOAI: true
44
VERSION: RHOAI-v2.17
55
KUBECTL: oc
66
FAIRSHARE: true

setup.tmpl/TEAM-SETUP.md.tmpl

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ A *team* in MLBatch is a group of users that share a resource quota.
55
Before setting up your teams and quotas, please read [QUOTA_MAINTENANCE.md](../QUOTA_MAINTENANCE.md)
66
for a discussion of our recommended best practices.
77

8-
{{ if .OPENSHIFT }}
8+
{{ if .RHOAI }}
99
Setting up a new team requires the cluster admin to create a project,
1010
a user group, a quota, a queue, and the required role bindings as described below.
1111

@@ -29,7 +29,7 @@ Bind cluster role to group in namespace:
2929
Setting up a new team requires the cluster admin to create a namespace,
3030
a quota, a queue, and the required role bindings as described below.
3131

32-
{{ if .OPENSHIFT }}
32+
{{ if .RHOAI }}
3333
Create the namespace:
3434
```sh
3535
{{ .KUBECTL }} create namespace team1

0 commit comments

Comments
 (0)