Skip to content

Commit

Permalink
test: remove unnecessary waits from e2e tests (#1106)
Browse files Browse the repository at this point in the history
* remove unnecessary waits from e2e tests

Signed-off-by: mluffman <[email protected]>

* small refactor of platforms in Makefile

Signed-off-by: mluffman <[email protected]>

* fix

* update

* fix

---------

Signed-off-by: mluffman <[email protected]>
Co-authored-by: mluffman <[email protected]>
Co-authored-by: drivebyer <[email protected]>
  • Loading branch information
3 people authored Nov 13, 2024
1 parent 5a8a345 commit 0eac383
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ GOBIN=$(shell go env GOBIN)
endif

CONTAINER_ENGINE ?= docker
PLATFORMS="linux/arm64,linux/amd64"

all: manager

Expand Down Expand Up @@ -78,15 +79,15 @@ generate: controller-gen
$(CONTROLLER_GEN) object:headerFile="hack/boilerplate.go.txt" paths="./..."

docker-create:
${CONTAINER_ENGINE} buildx create --platform "linux/amd64,linux/arm64" --use
${CONTAINER_ENGINE} buildx create --platform $(PLATFORMS) --use

# Build the docker image
docker-build:
${CONTAINER_ENGINE} buildx build --platform="linux/arm64,linux/amd64" -t ${IMG} .
${CONTAINER_ENGINE} buildx build --platform=$(PLATFORMS) -t ${IMG} .

# Push the docker image
docker-push:
${CONTAINER_ENGINE} buildx build --push --platform="linux/arm64,linux/amd64" -t ${IMG} .
${CONTAINER_ENGINE} buildx build --push --platform="$(PLATFORMS)" -t ${IMG} .


# go-install-tool will 'go install' any package with custom target and name of binary, if it doesn't exist
Expand Down Expand Up @@ -114,7 +115,7 @@ bundle: manifests kustomize
# Build the bundle image.
.PHONY: bundle-build
bundle-build:
${CONTAINER_ENGINE} buildx build --platform="linux/arm64,linux/amd64" -f bundle.Dockerfile -t $(BUNDLE_IMG) .
${CONTAINER_ENGINE} buildx build --platform="$(PLATFORMS)" -f bundle.Dockerfile -t $(BUNDLE_IMG) .

# Generate bundle manifests and metadata, then validate generated files.
.PHONY: codegen
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@ kind: RedisCluster
metadata:
name: redis-cluster-v1beta2
status:
readyFollowerReplicas: 0
readyLeaderReplicas: 3
state: Ready
reason: RedisCluster is ready

0 comments on commit 0eac383

Please sign in to comment.