timoni: Update module schemas

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
Stefan Prodan
2023-10-30 12:41:21 +02:00
parent 401461595a
commit 19a59d96f1
@@ -0,0 +1,26 @@
// Copyright 2023 Stefan Prodan
// SPDX-License-Identifier: Apache-2.0
package v1alpha1
// Action holds the list of annotations for controlling
// Timoni's apply behaviour of Kubernetes resources.
Action: {
// Force annotation for recreating immutable resources such as Kubernetes Jobs.
Force: {
"action.timoni.sh/force": ActionStatus.Enabled
}
// One-off annotation for appling resources only if they don't exist on the cluster.
Oneoff: {
"action.timoni.sh/one-off": ActionStatus.Enabled
}
// Keep annotation for preventing Timoni's garbage collector from deleting resources.
Keep: {
"action.timoni.sh/prune": ActionStatus.Disabled
}
}
ActionStatus: {
Enabled: "enabled"
Disabled: "disabled"
}