setup tests for single namespace and dind

This commit is contained in:
Nikola Jokic
2023-11-28 10:55:31 +01:00
parent a9eb5b6c45
commit 819a9264a0
4 changed files with 173 additions and 37 deletions

View File

@@ -48,17 +48,12 @@ function delete_cluster() {
minikube delete
}
function install_arc() {
echo "Installing ARC"
helm install ${NAME} \
--namespace ${NAMESPACE} \
--create-namespace \
--set image.repository=${IMAGE_NAME} \
--set image.tag=${IMAGE_VERSION} \
${ROOT_DIR}/charts/gha-runner-scale-set-controller \
--debug
function log_arc() {
echo "ARC logs"
kubectl logs -n "${NAMESPACE}" -l app.kubernetes.io/name=gha-rs-controller
}
function wait_for_arc() {
echo "Waiting for ARC to be ready"
local count=0;
while true; do
@@ -80,11 +75,6 @@ function install_arc() {
kubectl describe deployment "${NAME}" -n "${NAMESPACE}"
}
function log_arc() {
echo "ARC logs"
kubectl logs -n "${NAMESPACE}" -l app.kubernetes.io/name=gha-rs-controller
}
function wait_for_scale_set() {
local count=0
while true; do