Kustomize create supports setting the namespace
@@ -17,7 +17,7 @@ fi
# Create the "base" root
-kustomize create --autodetect --recursive
+kustomize create --autodetect --recursive --namespace "$NAMESPACE"
# Detect and add patches
@@ -46,12 +46,6 @@ if [ -n "$TRIAL" ]; then
fi
-# Namespace support
-if [ -n "$NAMESPACE" ] ; then
- kustomize edit set namespace "$NAMESPACE"
-fi
-
-
# Process arguments
while [ "$#" != "0" ] ; do
case "$1" in
