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