-
Notifications
You must be signed in to change notification settings - Fork 232
/
Copy pathopenshift_ai_config.go
15 lines (13 loc) · 1.02 KB
/
openshift_ai_config.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package openshiftai
// These requirements have been extracted from this document:
//
// https://docs.redhat.com/en/documentation/red_hat_openshift_ai_self-managed/2.13/html/installing_and_uninstalling_openshift_ai_self-managed/installing-and-deploying-openshift-ai_install#installing-and-deploying-openshift-ai_install
type Config struct {
MinWorkerNodes int64 `envconfig:"OPENSHIFT_AI_MIN_WORKER_NODES" default:"2"`
MinWorkerMemoryGiB int64 `envconfig:"OPENSHIFT_AI_MIN_WORKER_MEMORY_GIB" default:"32"`
MinWorkerCPUCores int64 `envconfig:"OPENSHIFT_AI_MIN_WORKER_CPU_CORES" default:"8"`
// TODO: Currently we use the controller image to run the setup tools because all we need is the shell and the
// `oc` command, and that way we don't need an additional image. But in the future we will probably want to have
// a separate image that contains the things that we need to run these setup jobs.
ControllerImage string `envconfig:"CONTROLLER_IMAGE" default:"quay.io/edge-infrastructure/assisted-installer-controller:latest"`
}