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 kind.sh development scripts on MacOS #25317
Conversation
Our Makefiles and scripts largely assume GNU sed, and kind.sh uses `sed -z` which requires GNU sed. MacOS ships with BSD sed, so to make the existing `kind.sh` script work, make the sed binary configurable, and pass through the Makefile SED to the script. Signed-off-by: Chance Zibolski <chance.zibolski@gmail.com>
Integration tests failed on a panic. Seems to be same as #24696. |
/test Job 'Cilium-PR-K8s-1.16-kernel-4.19' failed: Click to show.Test Name
Failure Output
Jenkins URL: https://jenkins.cilium.io/job/Cilium-PR-K8s-1.16-kernel-4.19/1328/ If it is a flake and a GitHub issue doesn't already exist to track it, comment Then please upload the Jenkins artifacts to that issue. |
Thanks for this @chancez. This works for me on my Mac M1. |
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.
There's probably more invocations of sed which ought to be converted to $SED
but if this is enough to unblock someone, I'm all for it.
Yeah I figured I could revisit the sed bits at another point, honestly a lot of the usage doesn't always matter since you can't build a lot of packages/things on MacOS anyways. |
Hit the same error as #22749 in k8s-1.16-kernel-4.19. This change shouldn't impact any existing e2e style tests from what I can tell, but I'll try re-running it so things are green. |
/test-1.16-4.19 |
@@ -411,7 +411,7 @@ microk8s: check-microk8s ## Build cilium-dev docker image and import to microk8s | |||
$(QUIET)./contrib/scripts/microk8s-import.sh $(LOCAL_OPERATOR_IMAGE) | |||
|
|||
kind: ## Create a kind cluster for Cilium development. | |||
$(QUIET)./contrib/scripts/kind.sh | |||
SED=$(SED) $(QUIET)./contrib/scripts/kind.sh |
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.
The $(QUIET)
part must come at the start of the line, this breaks make kind
in quiet mode.
Our Makefiles and scripts largely assume GNU sed, and kind.sh uses
sed -z
which requires GNU sed. MacOS ships with BSD sed, so to make the existingkind.sh
script work, make the sed binary configurable, and pass through the Makefile SED to the script.