-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding test AKS workflow to v0.32 (#1052)
* Run functional tests every 2 hours and add another workflow that runs… (#1020) * Run functional tests every 2 hours and add another workflow that runs the tests on AKS instead of k3d Signed-off-by: ytimocin <[email protected]> * Triggering workflow Signed-off-by: ytimocin <[email protected]> --------- Signed-off-by: ytimocin <[email protected]> * Removing the run of the AKS workflow on PRs (#1051) Signed-off-by: ytimocin <[email protected]> * Update the timeout (30s) for Playwright Signed-off-by: ytimocin <[email protected]> --------- Signed-off-by: ytimocin <[email protected]>
- Loading branch information
Showing
9 changed files
with
645 additions
and
169 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
#!/bin/bash | ||
|
||
# ------------------------------------------------------------ | ||
# Copyright 2023 The Radius Authors. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# ------------------------------------------------------------ | ||
|
||
set -e | ||
|
||
echo "Cleaning up cluster" | ||
|
||
# Delete all test resources in queuemessages. | ||
if kubectl get crd queuemessages.ucp.dev >/dev/null 2>&1; then | ||
echo "delete all resources in queuemessages.ucp.dev" | ||
kubectl delete queuemessages.ucp.dev -n radius-system --all | ||
fi | ||
|
||
# Testing deletion of deployment.apps. | ||
|
||
# Delete all test resources in resources without proxy resource. | ||
if kubectl get crd resources.ucp.dev >/dev/null 2>&1; then | ||
echo "delete all resources in resources.ucp.dev" | ||
resources=$(kubectl get resources.ucp.dev -n radius-system --no-headers -o custom-columns=":metadata.name") | ||
for r in $resources; do | ||
echo "delete resource: $r" | ||
kubectl delete resources.ucp.dev $r -n radius-system --ignore-not-found=true | ||
done | ||
fi | ||
|
||
# Delete all test namespaces. | ||
# Any namespace that is not in the list below will be deleted. | ||
echo "Delete all test namespaces" | ||
namespaces=$(kubectl get namespace | | ||
grep -vE '(radius-system|kube-system|kube-public|kube-node-lease|gatekeeper-system|default|dapr-system|cert-manager)' | | ||
awk '{print $1}') | ||
for ns in $namespaces; do | ||
if [ -z "$ns" ]; then | ||
break | ||
fi | ||
echo "deleting namespaces: $ns" | ||
kubectl delete namespace $ns --ignore-not-found=true | ||
done |
Large diffs are not rendered by default.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.