mirror of
https://gitlab.com/TECHNOFAB/coder-templates.git
synced 2025-12-12 10:10:05 +01:00
16 lines
412 B
Nix
16 lines
412 B
Nix
{...}: {
|
|
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";
|
|
};
|
|
};
|
|
};
|
|
}
|