From 19a59d96f1b7514bc702664d33a053f24b4f433e Mon Sep 17 00:00:00 2001 From: Stefan Prodan Date: Mon, 30 Oct 2023 12:41:21 +0200 Subject: [PATCH] timoni: Update module schemas Signed-off-by: Stefan Prodan --- .../pkg/timoni.sh/core/v1alpha1/action.cue | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 timoni/podinfo/cue.mod/pkg/timoni.sh/core/v1alpha1/action.cue diff --git a/timoni/podinfo/cue.mod/pkg/timoni.sh/core/v1alpha1/action.cue b/timoni/podinfo/cue.mod/pkg/timoni.sh/core/v1alpha1/action.cue new file mode 100644 index 0000000..2c579e9 --- /dev/null +++ b/timoni/podinfo/cue.mod/pkg/timoni.sh/core/v1alpha1/action.cue @@ -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" +}