fabric-samples/test-network-k8s-operator/scripts/start_operator.sh
Josh Kneubuhl 05e4b03283 Move fabric-kube-test-network from Hyperledgendary -> samples
Signed-off-by: Josh Kneubuhl <jkneubuh@us.ibm.com>
2023-02-10 04:46:31 -05:00

19 lines
No EOL
498 B
Bash
Executable file

#!/usr/bin/env bash
set -euo pipefail
. scripts/utils.sh
# Create the namespace, ignoring an error if it previously was created.
cat << EOF | kubectl apply -f -
apiVersion: v1
kind: Namespace
metadata:
name: ${NAMESPACE}
EOF
print "Launching ${NAMESPACE} fabric-operator"
# Substitute just/env variables into the kustomization before applying to k8s
kubectl kustomize kind/operator | envsubst | kubectl -n ${NAMESPACE} apply -f -
kubectl -n ${NAMESPACE} rollout status deploy fabric-operator