1
0
mirror of synced 2026-02-13 13:06:56 +00:00

Adds suspend and resume all cmd

Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
This commit is contained in:
Somtochi Onyekwere
2021-04-27 09:03:37 +01:00
parent 68074d3543
commit 12a2100fcf
48 changed files with 210 additions and 29 deletions

View File

@@ -33,6 +33,7 @@ var resumeSourceHelmChartCmd = &cobra.Command{
RunE: resumeCommand{
apiType: helmChartType,
object: &helmChartAdapter{&sourcev1.HelmChart{}},
list: &helmChartListAdapter{&sourcev1.HelmChartList{}},
}.run,
}
@@ -51,3 +52,7 @@ func (obj helmChartAdapter) setUnsuspended() {
func (obj helmChartAdapter) successMessage() string {
return fmt.Sprintf("fetched revision %s", obj.Status.Artifact.Revision)
}
func (a helmChartListAdapter) resumeItem(i int) resumable {
return &helmChartAdapter{&a.HelmChartList.Items[i]}
}