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

31 lines
653 B
Nix
Raw Normal View History

# 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
2023-11-22 05:59:45 +00:00
DEFAULT = {
labels = {
"istio.io/rev" = "1-18-1";
};
};
in {
2023-11-22 05:59:45 +00:00
# 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";
};
};
}