| commit | 4257b905211f530f42934956ad9fd935cf501bff | [log] [tgz] |
|---|---|---|
| author | Giorgi Lekveishvili <lekva@gl-mbp-m1-max.local> | Fri Jul 07 17:08:42 2023 +0400 |
| committer | Giorgi Lekveishvili <lekva@gl-mbp-m1-max.local> | Fri Jul 07 17:08:42 2023 +0400 |
| tree | 57bf9364f91b25d98bb2e05bec4edfb811e27099 | |
| parent | af940c87b4c70277b5abfdfe2c54d90b174edaa9 [diff] [blame] |
appmanager: replace svelte implementation with go based one
diff --git a/core/installer/kustomization.go b/core/installer/kustomization.go index 93f806a..1db9614 100644 --- a/core/installer/kustomization.go +++ b/core/installer/kustomization.go
@@ -53,3 +53,14 @@ } } } + +func (k *Kustomization) RemoveResources(names ...string) { + for _, name := range names { + for i, r := range k.Resources { + if r == name { + k.Resources = slices.Delete(k.Resources, i, i+1) + break + } + } + } +}