Adds suspend and resume all cmd
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
This commit is contained in:
@@ -31,6 +31,7 @@ var resumeImageUpdateCmd = &cobra.Command{
|
||||
RunE: resumeCommand{
|
||||
apiType: imageUpdateAutomationType,
|
||||
object: imageUpdateAutomationAdapter{&autov1.ImageUpdateAutomation{}},
|
||||
list: imageUpdateAutomationListAdapter{&autov1.ImageUpdateAutomationList{}},
|
||||
}.run,
|
||||
}
|
||||
|
||||
@@ -45,3 +46,7 @@ func (obj imageUpdateAutomationAdapter) setUnsuspended() {
|
||||
func (obj imageUpdateAutomationAdapter) getObservedGeneration() int64 {
|
||||
return obj.ImageUpdateAutomation.Status.ObservedGeneration
|
||||
}
|
||||
|
||||
func (a imageUpdateAutomationListAdapter) resumeItem(i int) resumable {
|
||||
return &imageUpdateAutomationAdapter{&a.ImageUpdateAutomationList.Items[i]}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user