1
0
Fork 0
mirror of https://git.sr.ht/~goorzhel/turboprop synced 2024-12-14 11:37:37 +00:00
turboprop/namespaces.nix
2023-11-21 22:01:01 -08:00

30 lines
653 B
Nix

# Assign extra metadata here. For example,
# `svc = {labels."istio.io/rev" = "1-18-1"}`
# is the equivalent of
# `k label ns/svc istio.io/rev=1-18-1`
let
DEFAULT = {
labels = {
"istio.io/rev" = "1-18-1";
};
};
in {
# All-caps names are safe to use for special values;
# no Kubernetes object can have capital letters.
inherit DEFAULT;
# Opt a namespace out of the defaults.
gateway-system = {};
kube-system = {};
longhorn-system = {};
# To set data beyond the defaults,
# opt the namespace back in.
default =
DEFAULT
// {
labels = {
"words-words-words-words" = "punchline";
};
};
}