Skip to content

Commit

Permalink
Backport changes from production Hive deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
tsatam committed Feb 13, 2024
1 parent 3afea90 commit 41cf008
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion hack/hive-dev-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,19 @@ else
fi

$KUBECTL apply -f ./hack/hive-config/crds
$KUBECTL apply -f ./hack/hive-config/hive-deployment.yaml

echo "$PULL_SECRET" > /tmp/.tmp-secret
# Using dry-run allows updates to work seamlessly
$KUBECTL create secret generic hive-global-pull-secret --from-file=.dockerconfigjson=/tmp/.tmp-secret --type=kubernetes.io/dockerconfigjson --namespace $HIVE_OPERATOR_NS -o yaml --dry-run=client | $KUBECTL apply -f - 2>/dev/null
rm -f /tmp/.tmp-secret

sed "s/HIVE_OPERATOR_NS/$HIVE_OPERATOR_NS/g" hack/hive-config/hive-config.yaml | $KUBECTL apply -f -
$KUBECTL apply -f ./hack/hive-config/hive-additional-install-log-regexes.yaml

$KUBECTL apply -f ./hack/hive-config/hive-deployment.yaml

$KUBECTL wait --timeout=5m --for=condition=Available --namespace hive deployment/hive-operator
$KUBECTL wait --timeout=5m --for=condition=Available --namespace hive deployment/hive-controllers
$KUBECTL wait --timeout=5m --for=condition=Ready --namespace hive pod --selector "control-plane=clustersync"

echo -e "\nHive is installed."

0 comments on commit 41cf008

Please sign in to comment.