mirror of
https://git.sr.ht/~goorzhel/turboprop
synced 2024-12-14 11:37:37 +00:00
Add nsMetadata example to template
This commit is contained in:
parent
a6ab0c6960
commit
a4ace6bfc4
1 changed files with 28 additions and 0 deletions
28
templates/default/namespaces.nix
Normal file
28
templates/default/namespaces.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
# Assign extra metadata here. For example,
|
||||
# `default = {labels."istio.io/rev" = "stable"}`
|
||||
# is the equivalent of
|
||||
# `k label ns/default istio.io/rev=stable`
|
||||
rec {
|
||||
# All-caps names are safe to use for special values;
|
||||
# no Kubernetes object can have capital letters.
|
||||
DEFAULT = {
|
||||
labels = {
|
||||
"istio.io/rev" = "stable";
|
||||
};
|
||||
};
|
||||
|
||||
# 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";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue