Adds suspend and resume all cmd
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
This commit is contained in:
@@ -31,6 +31,7 @@ var suspendSourceHelmChartCmd = &cobra.Command{
|
||||
RunE: suspendCommand{
|
||||
apiType: helmChartType,
|
||||
object: helmChartAdapter{&sourcev1.HelmChart{}},
|
||||
list: helmChartListAdapter{&sourcev1.HelmChartList{}},
|
||||
}.run,
|
||||
}
|
||||
|
||||
@@ -45,3 +46,7 @@ func (obj helmChartAdapter) isSuspended() bool {
|
||||
func (obj helmChartAdapter) setSuspended() {
|
||||
obj.HelmChart.Spec.Suspend = true
|
||||
}
|
||||
|
||||
func (a helmChartListAdapter) item(i int) suspendable {
|
||||
return &helmChartAdapter{&a.HelmChartList.Items[i]}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user