From 5cac345a4386edd4794d5ebd7f3b502e9953e9e0 Mon Sep 17 00:00:00 2001 From: Michael Bridgen Date: Wed, 25 Nov 2020 15:20:22 +0000 Subject: [PATCH] Add Suspend field to spec Signed-off-by: Michael Bridgen --- api/v1alpha1/imageupdateautomation_types.go | 5 +++++ .../image.toolkit.fluxcd.io_imageupdateautomations.yaml | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/api/v1alpha1/imageupdateautomation_types.go b/api/v1alpha1/imageupdateautomation_types.go index e00683f..6fd562d 100644 --- a/api/v1alpha1/imageupdateautomation_types.go +++ b/api/v1alpha1/imageupdateautomation_types.go @@ -40,6 +40,11 @@ type ImageUpdateAutomationSpec struct { // Commit specifies how to commit to the git repo // +required Commit CommitSpec `json:"commit"` + + // Suspend tells the controller to not run this automation, until + // it is unset (or set to false). Defaults to false. + // +optional + Suspend bool `json:"suspend,omitempty"` } type GitCheckoutSpec struct { diff --git a/config/crd/bases/image.toolkit.fluxcd.io_imageupdateautomations.yaml b/config/crd/bases/image.toolkit.fluxcd.io_imageupdateautomations.yaml index 169e66d..a4bac01 100644 --- a/config/crd/bases/image.toolkit.fluxcd.io_imageupdateautomations.yaml +++ b/config/crd/bases/image.toolkit.fluxcd.io_imageupdateautomations.yaml @@ -86,6 +86,10 @@ spec: description: RunInterval gives a lower bound for how often the automation run should be attempted. Otherwise it will default. type: string + suspend: + description: Suspend tells the controller to not run this automation, + until it is unset (or set to false). Defaults to false. + type: boolean update: description: Update gives the specification for how to update the files in the repository