mirror of
https://gitlab.com/TECHNOFAB/coder-templates.git
synced 2025-12-12 02:00:11 +01:00
chore: initial commit
This commit is contained in:
commit
8cf73a70ef
19 changed files with 1004 additions and 0 deletions
26
nix-kubernetes/variables.nix
Normal file
26
nix-kubernetes/variables.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
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";
|
||||
};
|
||||
};
|
||||
"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";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue