-
Notifications
You must be signed in to change notification settings - Fork 90
fix: make deploy-olm on ARM clusters #1478
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -37,6 +37,8 @@ endif | |||||||||
| # makes CLUSTER_TYPE quieter when unauthenticated | ||||||||||
| CLUSTER_TYPE_SHELL := $(shell $(OC_CLI) get infrastructures cluster -o jsonpath='{.status.platform}' 2> /dev/null | tr A-Z a-z) | ||||||||||
| CLUSTER_TYPE ?= $(CLUSTER_TYPE_SHELL) | ||||||||||
| CLUSTER_OS = $(shell $(OC_CLI) get node -o jsonpath='{.items[0].status.nodeInfo.operatingSystem}' 2> /dev/null) | ||||||||||
| CLUSTER_ARCH = $(shell $(OC_CLI) get node -o jsonpath='{.items[0].status.nodeInfo.architecture}' 2> /dev/null) | ||||||||||
|
Comment on lines
+40
to
+41
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Followup
Suggested change
|
||||||||||
|
|
||||||||||
| ifeq ($(CLUSTER_TYPE), gcp) | ||||||||||
| CI_CRED_FILE = ${CLUSTER_PROFILE_DIR}/gce.json | ||||||||||
|
|
@@ -203,13 +205,14 @@ build: generate fmt vet ## Build manager binary. | |||||||||
| run: manifests generate fmt vet ## Run a controller from your host. | ||||||||||
| go run ./main.go | ||||||||||
|
|
||||||||||
| # Development clusters require linux/amd64 OCI image | ||||||||||
| # Set platform to linux/amd64 regardless of host platform. | ||||||||||
| # If using podman machine, and host platform is not linux/amd64 run | ||||||||||
| # - podman machine ssh sudo rpm-ostree install qemu-user-static && sudo systemctl reboot | ||||||||||
| # from: https://github.com/containers/podman/issues/12144#issuecomment-955760527 | ||||||||||
| # related enhancements that may remove the need to manually install qemu-user-static https://bugzilla.redhat.com/show_bug.cgi?id=2061584 | ||||||||||
| DOCKER_BUILD_ARGS ?= --platform=linux/amd64 | ||||||||||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we could pass so, I think is best to use the fastest solution for development environment
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. +1 |
||||||||||
| ifneq ($(CLUSTER_TYPE),) | ||||||||||
| DOCKER_BUILD_ARGS = --platform=$(CLUSTER_OS)/$(CLUSTER_ARCH) | ||||||||||
| endif | ||||||||||
| docker-build: ## Build docker image with the manager. | ||||||||||
| docker build -t $(IMG) . $(DOCKER_BUILD_ARGS) | ||||||||||
|
|
||||||||||
|
|
||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.