-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove fileserver check from prod_cluster test and add prod_cluster_w…
…ith_smb test (#50) * removing fileserver from prod * adding prod cluster with smb test * adding execute permissions
- Loading branch information
1 parent
5b59e18
commit ddb9555
Showing
3 changed files
with
59 additions
and
1 deletion.
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
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 |
---|---|---|
@@ -0,0 +1,55 @@ | ||
#!/bin/bash | ||
# | ||
# Deploys and tests the cluster in it's production configuration | ||
# | ||
|
||
# Example Usage: | ||
# | ||
# "bash ./tests/prod_cluster.sh" | ||
set -e | ||
SCRIPT_NAME=$(basename "$0") | ||
WORKING_DIR="$(git rev-parse --show-toplevel)" | ||
|
||
echo "Microsoft Azure Orbital Space SDK - Production Cluster Test" | ||
|
||
if [[ -d "/var/spacedev" ]]; then | ||
echo "Resetting enviornment with big_red_button.sh" | ||
/var/spacedev/scripts/big_red_button.sh | ||
fi | ||
|
||
echo "Creating /var/spacedev directory..." | ||
${WORKING_DIR}/.vscode/copy_to_spacedev.sh | ||
|
||
|
||
echo "Staging Microsoft Azure Orbital Space SDK..." | ||
/var/spacedev/scripts/stage_spacefx.sh --smb | ||
|
||
echo "Deploying Microsoft Azure Orbital Space SDK..." | ||
/var/spacedev/scripts/deploy_spacefx.sh | ||
|
||
echo "Checking cluster..." | ||
export KUBECONFIG=/etc/rancher/k3s/k3s.yaml | ||
if [[ ! -f "${KUBECONFIG}" ]]; then | ||
echo "KUBECONFIG '${KUBECONFIG}' not found. Cluster did not initialize." | ||
exit 1 | ||
fi | ||
|
||
kubectl get deployment/coresvc-registry -n coresvc | ||
kubectl get deployment/coresvc-fileserver -n coresvc | ||
kubectl get deployment/coresvc-switchboard -n coresvc | ||
|
||
kubectl get deployment/hostsvc-link -n hostsvc | ||
kubectl get deployment/hostsvc-sensor -n hostsvc | ||
kubectl get deployment/hostsvc-logging -n hostsvc | ||
kubectl get deployment/hostsvc-position -n hostsvc | ||
|
||
|
||
kubectl get deployment/platform-deployment -n platformsvc | ||
kubectl get deployment/platform-mts -n platformsvc | ||
|
||
echo "" | ||
echo "" | ||
echo "" | ||
echo "-------------------------------" | ||
echo "${SCRIPT_NAME} - Test successful" | ||
set +e |