fixing tests
This commit is contained in:
		
							parent
							
								
									593cee8d7e
								
							
						
					
					
						commit
						623e372a79
					
				
							
								
								
									
										2
									
								
								Makefile
								
								
								
								
							
							
						
						
									
										2
									
								
								Makefile
								
								
								
								
							|  | @ -210,8 +210,6 @@ docker-buildx: | ||||||
| 		docker buildx create --platform ${PLATFORMS} --name container-builder --use;\
 | 		docker buildx create --platform ${PLATFORMS} --name container-builder --use;\
 | ||||||
| 	fi | 	fi | ||||||
| 	docker buildx build --platform ${PLATFORMS} \
 | 	docker buildx build --platform ${PLATFORMS} \
 | ||||||
| 		--build-arg RUNNER_VERSION=${RUNNER_VERSION} \
 |  | ||||||
| 		--build-arg DOCKER_VERSION=${DOCKER_VERSION} \
 |  | ||||||
| 		--build-arg VERSION=${VERSION} \
 | 		--build-arg VERSION=${VERSION} \
 | ||||||
| 		--build-arg COMMIT_SHA=${COMMIT_SHA} \
 | 		--build-arg COMMIT_SHA=${COMMIT_SHA} \
 | ||||||
| 		-t "${DOCKER_IMAGE_NAME}:${VERSION}" \
 | 		-t "${DOCKER_IMAGE_NAME}:${VERSION}" \
 | ||||||
|  |  | ||||||
|  | @ -51,7 +51,7 @@ function install_scale_set() { | ||||||
|         --set proxy.https.url="http://host.minikube.internal:3128" \ |         --set proxy.https.url="http://host.minikube.internal:3128" \ | ||||||
|         --set "proxy.noProxy[0]=10.96.0.1:443" \ |         --set "proxy.noProxy[0]=10.96.0.1:443" \ | ||||||
|         "${ROOT_DIR}/charts/gha-runner-scale-set" \ |         "${ROOT_DIR}/charts/gha-runner-scale-set" \ | ||||||
|         --version="${VERSION}" \ |         --version="${IMAGE_VERSION}" \ | ||||||
|         --debug |         --debug | ||||||
| 
 | 
 | ||||||
|     if ! NAME="${SCALE_SET_NAME}" NAMESPACE="${ARC_NAMESPACE}" wait_for_scale_set; then |     if ! NAME="${SCALE_SET_NAME}" NAMESPACE="${ARC_NAMESPACE}" wait_for_scale_set; then | ||||||
|  |  | ||||||
|  | @ -66,7 +66,7 @@ function install_scale_set() { | ||||||
|         --set proxy.https.credentialSecretRef="proxy-auth" \ |         --set proxy.https.credentialSecretRef="proxy-auth" \ | ||||||
|         --set "proxy.noProxy[0]=10.96.0.1:443" \ |         --set "proxy.noProxy[0]=10.96.0.1:443" \ | ||||||
|         "${ROOT_DIR}/charts/gha-runner-scale-set" \ |         "${ROOT_DIR}/charts/gha-runner-scale-set" \ | ||||||
|         --version="${VERSION}" \ |         --version="${IMAGE_VERSION}" \ | ||||||
|         --debug |         --debug | ||||||
| 
 | 
 | ||||||
|     if ! NAME="${SCALE_SET_NAME}" NAMESPACE="${ARC_NAMESPACE}" wait_for_scale_set; then |     if ! NAME="${SCALE_SET_NAME}" NAMESPACE="${ARC_NAMESPACE}" wait_for_scale_set; then | ||||||
|  |  | ||||||
|  | @ -24,7 +24,7 @@ function install_arc() { | ||||||
|         --create-namespace \ |         --create-namespace \ | ||||||
|         --set image.repository="${IMAGE_NAME}" \ |         --set image.repository="${IMAGE_NAME}" \ | ||||||
|         --set image.tag="${IMAGE_TAG}" \ |         --set image.tag="${IMAGE_TAG}" \ | ||||||
|         ${ROOT_DIR}/charts/gha-runner-scale-set-controller \ |         "${ROOT_DIR}/charts/gha-runner-scale-set-controller" \ | ||||||
|         --debug |         --debug | ||||||
| 
 | 
 | ||||||
|     if ! NAME="${ARC_NAME}" NAMESPACE="${ARC_NAMESPACE}" wait_for_arc; then |     if ! NAME="${ARC_NAME}" NAMESPACE="${ARC_NAMESPACE}" wait_for_arc; then | ||||||
|  | @ -40,8 +40,8 @@ function install_scale_set() { | ||||||
|         --create-namespace \ |         --create-namespace \ | ||||||
|         --set githubConfigUrl="https://github.com/${TARGET_ORG}/${TARGET_REPO}" \ |         --set githubConfigUrl="https://github.com/${TARGET_ORG}/${TARGET_REPO}" \ | ||||||
|         --set githubConfigSecret.github_token="${GITHUB_TOKEN}" \ |         --set githubConfigSecret.github_token="${GITHUB_TOKEN}" \ | ||||||
|         ${ROOT_DIR}/charts/gha-runner-scale-set \ |         "${ROOT_DIR}/charts/gha-runner-scale-set" \ | ||||||
|         --version="${VERSION}" \ |         --version="${IMAGE_VERSION}" \ | ||||||
|         --debug |         --debug | ||||||
| 
 | 
 | ||||||
|     if ! NAME="${SCALE_SET_NAME}" NAMESPACE="${ARC_NAMESPACE}" wait_for_scale_set; then |     if ! NAME="${SCALE_SET_NAME}" NAMESPACE="${ARC_NAMESPACE}" wait_for_scale_set; then | ||||||
|  |  | ||||||
|  | @ -41,8 +41,8 @@ function install_scale_set() { | ||||||
|         --set githubConfigUrl="https://github.com/${TARGET_ORG}/${TARGET_REPO}" \ |         --set githubConfigUrl="https://github.com/${TARGET_ORG}/${TARGET_REPO}" \ | ||||||
|         --set githubConfigSecret.github_token="${GITHUB_TOKEN}" \ |         --set githubConfigSecret.github_token="${GITHUB_TOKEN}" \ | ||||||
|         --set containerMode.type="dind" \ |         --set containerMode.type="dind" \ | ||||||
|         ${ROOT_DIR}/charts/gha-runner-scale-set \ |         "${ROOT_DIR}/charts/gha-runner-scale-set" \ | ||||||
|         --version="${VERSION}" \ |         --version="${IMAGE_VERSION}" \ | ||||||
|         --debug |         --debug | ||||||
| 
 | 
 | ||||||
|     if ! NAME="${SCALE_SET_NAME}" NAMESPACE="${ARC_NAMESPACE}" wait_for_scale_set; then |     if ! NAME="${SCALE_SET_NAME}" NAMESPACE="${ARC_NAMESPACE}" wait_for_scale_set; then | ||||||
|  |  | ||||||
|  | @ -9,26 +9,25 @@ ROOT_DIR="$(realpath "${DIR}/../..")" | ||||||
| export TARGET_ORG="${TARGET_ORG:-actions-runner-controller}" | export TARGET_ORG="${TARGET_ORG:-actions-runner-controller}" | ||||||
| export TARGET_REPO="${TARGET_REPO:-arc_e2e_test_dummy}" | export TARGET_REPO="${TARGET_REPO:-arc_e2e_test_dummy}" | ||||||
| export IMAGE_NAME="${IMAGE_NAME:-arc-test-image}" | export IMAGE_NAME="${IMAGE_NAME:-arc-test-image}" | ||||||
| export VERSION="${VERSION:-$(yq .version < "${ROOT_DIR}/charts/gha-runner-scale-set-controller/Chart.yaml")}" | export IMAGE_VERSION="${VERSION:-$(yq .version < "${ROOT_DIR}/charts/gha-runner-scale-set-controller/Chart.yaml")}" | ||||||
| export IMAGE_VERSION="${IMAGE_VERSION:-${VERSION}}" | export IMAGE_TAG="${IMAGE_NAME}:${IMAGE_VERSION}" | ||||||
|  | 
 | ||||||
|  | export PLATFORMS="linux/amd64" | ||||||
|  | export COMMIT_SHA="$(git rev-parse HEAD)" | ||||||
| 
 | 
 | ||||||
| function build_image() { | function build_image() { | ||||||
|     echo "Building ARC image ${IMAGE_NAME}:${IMAGE_VERSION}" |     echo "Building ARC image ${IMAGE_TAG}" | ||||||
| 
 | 
 | ||||||
|     cd "${ROOT_DIR}" || exit 1 |     cd "${ROOT_DIR}" || exit 1 | ||||||
| 
 | 
 | ||||||
| 	export DOCKER_CLI_EXPERIMENTAL=enabled |  | ||||||
| 	export DOCKER_BUILDKIT=1 |  | ||||||
| 	docker buildx build --platform "${PLATFORMS}" \ | 	docker buildx build --platform "${PLATFORMS}" \ | ||||||
| 		--build-arg RUNNER_VERSION="${RUNNER_VERSION}" \ | 		--build-arg VERSION="${IMAGE_VERSION}" \ | ||||||
| 		--build-arg DOCKER_VERSION="${DOCKER_VERSION}" \ |  | ||||||
| 		--build-arg VERSION="${VERSION}" \ |  | ||||||
| 		--build-arg COMMIT_SHA="${COMMIT_SHA}" \ | 		--build-arg COMMIT_SHA="${COMMIT_SHA}" \ | ||||||
| 		-t "${IMAGE_NAME}:${IMAGE_VERSION}" \ | 		-t "${IMAGE_TAG}" \ | ||||||
| 		-f Dockerfile \ | 		-f Dockerfile \ | ||||||
| 		. --load | 		. --load | ||||||
| 
 | 
 | ||||||
|     echo "Created image ${IMAGE_NAME}:${IMAGE_VERSION}" |     echo "Created image ${IMAGE_TAG}" | ||||||
|     cd - || exit 1 |     cd - || exit 1 | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | @ -40,7 +39,7 @@ function create_cluster() { | ||||||
|     minikube start |     minikube start | ||||||
| 
 | 
 | ||||||
|     echo "Loading image into minikube cluster" |     echo "Loading image into minikube cluster" | ||||||
|     minikube image load "${IMAGE_NAME}:${IMAGE_VERSION}" |     minikube image load "${IMAGE_TAG}" | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| function delete_cluster() { | function delete_cluster() { | ||||||
|  |  | ||||||
|  | @ -50,7 +50,7 @@ function install_scale_set() { | ||||||
|         --set containerMode.kubernetesModeWorkVolumeClaim.storageClassName="openebs-hostpath" \ |         --set containerMode.kubernetesModeWorkVolumeClaim.storageClassName="openebs-hostpath" \ | ||||||
|         --set containerMode.kubernetesModeWorkVolumeClaim.resources.requests.storage="1Gi" \ |         --set containerMode.kubernetesModeWorkVolumeClaim.resources.requests.storage="1Gi" \ | ||||||
|         "${ROOT_DIR}/charts/gha-runner-scale-set" \ |         "${ROOT_DIR}/charts/gha-runner-scale-set" \ | ||||||
|         --version="${VERSION}" \ |         --version="${IMAGE_VERSION}" \ | ||||||
|         --debug |         --debug | ||||||
| 
 | 
 | ||||||
|     if ! NAME="${SCALE_SET_NAME}" NAMESPACE="${ARC_NAMESPACE}" wait_for_scale_set; then |     if ! NAME="${SCALE_SET_NAME}" NAMESPACE="${ARC_NAMESPACE}" wait_for_scale_set; then | ||||||
|  |  | ||||||
|  | @ -25,7 +25,7 @@ function install_arc() { | ||||||
|         --set image.repository="${IMAGE_NAME}" \ |         --set image.repository="${IMAGE_NAME}" \ | ||||||
|         --set image.tag="${IMAGE_TAG}" \ |         --set image.tag="${IMAGE_TAG}" \ | ||||||
|         --set flags.watchSingleNamespace="${ARC_NAMESPACE}" |         --set flags.watchSingleNamespace="${ARC_NAMESPACE}" | ||||||
|         ${ROOT_DIR}/charts/gha-runner-scale-set-controller \ |         "${ROOT_DIR}/charts/gha-runner-scale-set-controller" \ | ||||||
|         --debug |         --debug | ||||||
| 
 | 
 | ||||||
|     if ! NAME="${ARC_NAME}" NAMESPACE="${ARC_NAMESPACE}" wait_for_arc; then |     if ! NAME="${ARC_NAME}" NAMESPACE="${ARC_NAMESPACE}" wait_for_arc; then | ||||||
|  | @ -41,8 +41,8 @@ function install_scale_set() { | ||||||
|         --create-namespace \ |         --create-namespace \ | ||||||
|         --set githubConfigUrl="https://github.com/${TARGET_ORG}/${TARGET_REPO}" \ |         --set githubConfigUrl="https://github.com/${TARGET_ORG}/${TARGET_REPO}" \ | ||||||
|         --set githubConfigSecret.github_token="${GITHUB_TOKEN}" \ |         --set githubConfigSecret.github_token="${GITHUB_TOKEN}" \ | ||||||
|         ${ROOT_DIR}/charts/gha-runner-scale-set \ |         "${ROOT_DIR}/charts/gha-runner-scale-set" \ | ||||||
|         --version="${VERSION}" \ |         --version="${IMAGE_VERSION}" \ | ||||||
|         --debug |         --debug | ||||||
| 
 | 
 | ||||||
|     if ! NAME="${SCALE_SET_NAME}" NAMESPACE="${ARC_NAMESPACE}" wait_for_scale_set; then |     if ! NAME="${SCALE_SET_NAME}" NAMESPACE="${ARC_NAMESPACE}" wait_for_scale_set; then | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue