Skip to content

Commit a4fceeb

Browse files
committed
Update build.go
1 parent 6b2ddb5 commit a4fceeb

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

pkg/kubernetes/build.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,15 @@ func validate(clientVersion, constraint string) (bool, error) {
103103

104104
return c.Check(v), nil
105105
}
106+
107+
func getNamespacesCommand(namespaces []string) (namespaceCommand []string, err error) {
108+
109+
var commandBuilder []string
110+
//
111+
for _, namespace := range namespaces {
112+
commandBuilder = append(commandBuilder, "kubectl", "create", "namespace", namespace, "||", "true;")
113+
}
114+
commandBuilder = append([]string{"\nRUN"}, commandBuilder...)
115+
116+
return commandBuilder, nil
117+
}

0 commit comments

Comments
 (0)