-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EVEREST-107 Simplify Feature Builds (#1019)
* EVEREST-107 Simplify steps to run a FB By embedding all the artifacts in a single directory we can remove the complexity of setting the env vars. * EVEREST-107 feature build - wait for the port-forward to be ready * EVEREST-107 increase FB VS ready timeout to 60s Sometimes the default 30s isn't enought and we are seeing error: readyReplicas is not found --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
314073c
commit 0732e17
Showing
4 changed files
with
49 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,23 @@ | ||
#!/usr/bin/env bash | ||
|
||
if [[ -z "$VS_IMAGE" ]]; then | ||
echo "Error: VS_IMAGE environment variable is empty." >&2 | ||
exit 1 | ||
fi | ||
|
||
if [[ -z "$VERSION" ]]; then | ||
echo "Error: VERSION environment variable is empty." >&2 | ||
exit 1 | ||
fi | ||
# deploy VS and get it's internal IP | ||
SERVICE_IP=$(./vs.sh) | ||
|
||
if [[ -z "$HELM_PATH" ]]; then | ||
echo "Error: HELM_PATH environment variable is empty. Please add the absolute path to your helm build to the HELM_PATH environment variable." >&2 | ||
exit 1 | ||
fi | ||
kubectl port-forward svc/percona-version-service 8081:80 & | ||
|
||
if [[ -z "$EVEREST_CTL_PATH" ]]; then | ||
echo "Error: EVEREST_CTL_PATH environment variable is empty." >&2 | ||
exit 1 | ||
fi | ||
# sleep for 2 seconds to make sure the port-forward is ready | ||
sleep 2 | ||
|
||
# deploy VS and get it's internal IP | ||
SERVICE_IP=$(curl -sfL https://raw.githubusercontent.com/percona/everest/main/dev/fb/vs.sh | bash -s) | ||
os=$(uname -s | tr '[:upper:]' '[:lower:]') | ||
arch=$(uname -m | tr '[:upper:]' '[:lower:]') | ||
|
||
kubectl port-forward svc/percona-version-service 8081:80 & | ||
if [[ ($os == "linux" || $os == "darwin") && $arch == "x86_64" ]] | ||
then | ||
arch="amd64" | ||
elif [[ $os == "linux" && $arch == "aarch64" ]] | ||
then | ||
arch="arm64" | ||
fi | ||
|
||
# run everest installation with everest CLI | ||
"$EVEREST_CTL_PATH" install --chart-dir "$HELM_PATH/charts/everest" --version "$VERSION" --version-metadata-url http://localhost:8081 --operator.xtradb-cluster --operator.mongodb --operator.postgresql --skip-wizard --namespaces everest -v --helm.set "versionMetadataURL=http://$SERVICE_IP" | ||
"./everestctl-$os-$arch" install --chart-dir "helm-chart" --version "$(cat version.txt)" --version-metadata-url http://localhost:8081 --operator.xtradb-cluster --operator.mongodb --operator.postgresql --skip-wizard --namespaces everest -v --helm.set "versionMetadataURL=http://$SERVICE_IP" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,7 @@ | ||
#!/usr/bin/env bash | ||
|
||
if [[ -z "$HELM_PATH" ]]; then | ||
echo "Error: HELM_PATH environment variable is empty. Please add the absolute path to your helm build to the HELM_PATH environment variable." >&2 | ||
exit 1 | ||
fi | ||
|
||
if [[ -z "$VS_IMAGE" ]]; then | ||
echo "Error: VS_IMAGE environment variable is empty." >&2 | ||
exit 1 | ||
fi | ||
|
||
# deploy VS and get it's internal IP | ||
SERVICE_IP=$(curl -sfL https://raw.githubusercontent.com/percona/everest/main/dev/fb/vs.sh | bash -s) | ||
SERVICE_IP=$(./vs.sh) | ||
|
||
# run everest installation with helm | ||
helm install everest-core "$HELM_PATH/charts/everest" --namespace=everest-system --create-namespace --set versionMetadataURL="http://$SERVICE_IP" --timeout=10m --devel | ||
helm install everest-core "helm-chart" --namespace=everest-system --create-namespace --set versionMetadataURL="http://$SERVICE_IP" --timeout=10m --devel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters