2023-12-06 08:00:36 +00:00
|
|
|
# Assign extra metadata here. For example,
|
2023-12-07 05:33:46 +00:00
|
|
|
# `default = {labels."istio.io/rev" = "stable";}`
|
2023-12-06 08:00:36 +00:00
|
|
|
# is the equivalent of
|
|
|
|
# `k label ns/default istio.io/rev=stable`
|
2023-12-07 06:58:09 +00:00
|
|
|
|
|
|
|
# N.B.: namespaces set in extraMetadata but not present
|
|
|
|
# in `namespaces` aren't created.
|
|
|
|
|
2023-12-06 08:00:36 +00:00
|
|
|
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";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|