Skip to content

Commit 5cac345

Browse files
committed
Add Suspend field to spec
Signed-off-by: Michael Bridgen <[email protected]>
1 parent 0b4914a commit 5cac345

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

api/v1alpha1/imageupdateautomation_types.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ type ImageUpdateAutomationSpec struct {
4040
// Commit specifies how to commit to the git repo
4141
// +required
4242
Commit CommitSpec `json:"commit"`
43+
44+
// Suspend tells the controller to not run this automation, until
45+
// it is unset (or set to false). Defaults to false.
46+
// +optional
47+
Suspend bool `json:"suspend,omitempty"`
4348
}
4449

4550
type GitCheckoutSpec struct {

config/crd/bases/image.toolkit.fluxcd.io_imageupdateautomations.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ spec:
8686
description: RunInterval gives a lower bound for how often the automation
8787
run should be attempted. Otherwise it will default.
8888
type: string
89+
suspend:
90+
description: Suspend tells the controller to not run this automation,
91+
until it is unset (or set to false). Defaults to false.
92+
type: boolean
8993
update:
9094
description: Update gives the specification for how to update the
9195
files in the repository

0 commit comments

Comments
 (0)