File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -47,12 +47,18 @@ endif
47
47
48
48
# #@ Kubernetes Development
49
49
50
+ GNU_SED := $(shell sed --version >/dev/null 2>&1 && echo "yes" || echo "no")
51
+
50
52
YEAR := $(shell date +% Y)
51
53
CONTROLLERGEN_OBJECT_FLAGS := object:headerFile="$(ROOT_DIR ) /tools/boilerplate/boilerplate.generatego.txt",year=$(YEAR )
52
54
53
55
.PHONY : prepare-ip-family
54
56
prepare-ip-family :
55
- @find ./test -type f -name " *.yaml" | xargs sed -i -e ' s/ipFamily: IPv4/ipFamily: $(ENVOY_PROXY_IP_FAMILY)/g'
57
+ ifeq ($(GNU_SED ) ,yes)
58
+ @find ./test -type f -name "*.yaml" | xargs sed -i'' 's/ipFamily: IPv4/ipFamily: $(ENVOY_PROXY_IP_FAMILY)/g'
59
+ else
60
+ @find ./test -type f -name "*.yaml" | xargs sed -i '' 's/ipFamily: IPv4/ipFamily: $(ENVOY_PROXY_IP_FAMILY)/g'
61
+ endif
56
62
57
63
.PHONY : manifests
58
64
manifests : $(tools/controller-gen ) generate-gwapi-manifests # # Generate WebhookConfiguration and CustomResourceDefinition objects.
You can’t perform that action at this time.
0 commit comments