Skip to content
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

fix: operator build fix for macOS arm chips #5952

Closed
wants to merge 1 commit into from

Conversation

abhimanyu003
Copy link
Member

What this PR does / why we need it:

This PR fixes the operator build on mac arm based chip
This was also reported here #5917

I noticed that sed command is working differently on linux and macOS adding -e flag resolves the issue.

@@ -48,11 +48,11 @@ help: ## Display this help.
.PHONY: manifests
manifests: controller-gen ## Generate WebhookConfiguration, ClusterRole and CustomResourceDefinition objects.
$(CONTROLLER_GEN) rbac:roleName=v2-manager-role crd webhook paths="./..." output:crd:artifacts:config=config/crd/bases
sed -i '/namespace: seldon-mesh/d' config/rbac/role.yaml # remove namespace added by controller-gen
sed -i -e '/namespace: seldon-mesh/d' config/rbac/role.yaml # remove namespace added by controller-gen
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sadly, -i and -e mean different things on BSD sed (closest to the one on MacOS) and on GNU (linux) sed.

See here:

So we would not be able to accept this PR as it prevents the script from running on all other dev machines.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The command would still run on linux, but would no longer do the same thing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants