Add Suspend field to spec

Signed-off-by: Michael Bridgen <michael@weave.works>
This commit is contained in:
Michael Bridgen 2020-11-25 15:20:22 +00:00
parent 0b4914aa4b
commit 5cac345a43
2 changed files with 9 additions and 0 deletions

View File

@ -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 {

View File

@ -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