2024-04-24 19:01:04 +02:00
|
|
|
{...}: {
|
|
|
|
|
variable = {
|
|
|
|
|
namespace = {
|
|
|
|
|
type = "string";
|
|
|
|
|
description = "Kubernetes namespace (must exist prior to creating workspaces)";
|
|
|
|
|
};
|
|
|
|
|
arch = {
|
|
|
|
|
type = "string";
|
|
|
|
|
description = "Architecture of the host";
|
|
|
|
|
validation = {
|
|
|
|
|
condition = ''''${contains(["amd64", "arm64"], var.arch)}'';
|
|
|
|
|
error_message = "Invalid architecture selected";
|
|
|
|
|
};
|
|
|
|
|
};
|
2024-05-08 13:36:59 +02:00
|
|
|
cpu_request = {
|
|
|
|
|
type = "string";
|
|
|
|
|
description = "CPU request to apply to workspaces. Kubernetes Notation (eg. 500m)";
|
|
|
|
|
default = "0";
|
|
|
|
|
};
|
|
|
|
|
memory_request = {
|
|
|
|
|
type = "string";
|
|
|
|
|
description = "Memory request to apply to workspaces. Kubernetes Notation (eg. 1Gi)";
|
|
|
|
|
default = "0";
|
|
|
|
|
};
|
2024-04-24 19:01:04 +02:00
|
|
|
};
|
|
|
|
|
}
|