Skip to content

Commit

Permalink
[VVP-4769] Show installation token after Community Edition installation
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafal Matyjek committed Nov 22, 2022
1 parent fc3227e commit bffdd4f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,19 @@ main() {
echo "> Installing Ververica Platform..."
install_vvp "$edition" "$install_metrics" "$install_logging" || :

# generate token for community
if [ "$edition" == "community" ]; then
echo ""
echo "> Waiting for Installation Token..." && sleep 1m;
kubectl --namespace "$VVP_NAMESPACE" get secret installation-token --template={{.data.token}} && echo ""
if [ $? -eq 0 ]; then
echo "> To finish installation please register the token in https://www.ververica.com/getting-started"
else
echo "> Please reinstall Community Edition with defaults"
fi
exit 0
fi

echo "> Waiting for all Deployments and Pods to become ready..."
kubectl --namespace "$VVP_NAMESPACE" wait --timeout=5m --for=condition=available deployments --all
kubectl --namespace "$VVP_NAMESPACE" wait --timeout=5m --for=condition=ready pods --all
Expand Down

0 comments on commit bffdd4f

Please sign in to comment.