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

Refactor delete command for kustomizations, sources and helmreleases

Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
This commit is contained in:
Somtochi Onyekwere
2021-01-26 18:19:20 +01:00
committed by Hidde Beydals
parent 5401e1ace4
commit 1f1c8286a5
5 changed files with 21 additions and 217 deletions

View File

@@ -34,7 +34,10 @@ var deleteSourceHelmCmd = &cobra.Command{
Example: ` # Delete a Helm repository
flux delete source helm podinfo
`,
RunE: deleteSourceHelmCmdRun,
RunE: deleteCommand{
apiType: helmRepositoryType,
object: universalAdapter{&sourcev1.HelmRepository{}},
}.run,
}
func init() {