mirror of
https://gitlab.com/TECHNOFAB/coder-templates.git
synced 2026-02-02 19:35:06 +01:00
chore: add initial nix-kubernetes template
This commit is contained in:
parent
6bd319fbe9
commit
7cd71e7537
8 changed files with 425 additions and 2 deletions
16
nix-kubernetes/variables.nix
Normal file
16
nix-kubernetes/variables.nix
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{...}: {
|
||||
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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue