mirror of
https://github.com/fluxcd/flux2.git
synced 2026-04-25 21:08:50 +00:00
Refactor delete command for kustomizations, sources and helmreleases
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
This commit is contained in:
parent
5401e1ace4
commit
1f1c8286a5
5 changed files with 21 additions and 217 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue