mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 05:19:39 +02:00
refactor: replace the kubectl
binary with the upstream sdk (#524)
This commit is contained in:
parent
4d4360b86b
commit
bc29419c17
17 changed files with 354 additions and 182 deletions
11
pkg/libkubectl/manifest.go
Normal file
11
pkg/libkubectl/manifest.go
Normal file
|
@ -0,0 +1,11 @@
|
|||
package libkubectl
|
||||
|
||||
import "strings"
|
||||
|
||||
func manifestFilesToArgs(manifestFiles []string) []string {
|
||||
args := []string{}
|
||||
for _, path := range manifestFiles {
|
||||
args = append(args, "-f", strings.TrimSpace(path))
|
||||
}
|
||||
return args
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue