Revision 8149af706f37ee48af8c2bd0eef9435e3fc5a459 authored by Jarno Rajahalme on 08 June 2024, 12:01:45 UTC, committed by Jarno Rajahalme on 14 June 2024, 10:12:59 UTC
We now only ever have 'localOnly = true' so that we always bind the proxy listeners to localhost address. Remove support for all-hosts addresses. Signed-off-by: Jarno Rajahalme <jarno@isovalent.com>
1 parent ee1cf1c
Makefile
GO := go
GO_BUILD_FLAGS =
GO_TEST_FLAGS =
GO_BUILD = CGO_ENABLED=0 $(GO) build $(GO_BUILD_FLAGS)
SUBDIRS_HUBBLE_CLI := .
TARGET=hubble
VERSION=$(shell cat ../VERSION)
# homebrew uses the github release's tarball of the source that does not contain the '.git' directory.
GIT_BRANCH = $(shell command -v git >/dev/null 2>&1 && git rev-parse --abbrev-ref HEAD 2> /dev/null)
GIT_HASH = $(shell command -v git >/dev/null 2>&1 && git rev-parse --short HEAD 2> /dev/null)
GO_TAGS ?=
GOOS ?=
GOARCH ?=
# Add the ability to override variables
-include Makefile.override
all: hubble
hubble:
$(MAKE) -C $(SUBDIRS_HUBBLE_CLI) hubble-bin
hubble-bin:
GOOS=$(GOOS) GOARCH=$(GOARCH) $(GO_BUILD) $(if $(GO_TAGS),-tags $(GO_TAGS)) -ldflags "-w -s -X 'github.com/cilium/cilium/hubble/pkg.GitBranch=${GIT_BRANCH}' -X 'github.com/cilium/cilium/hubble/pkg.GitHash=$(GIT_HASH)' -X 'github.com/cilium/cilium/hubble/pkg.Version=${VERSION}'" -o $(TARGET) $(SUBDIRS_HUBBLE_CLI)
local-release: clean
set -o errexit; \
for OS in darwin linux windows; do \
EXT=; \
ARCHS=; \
case $$OS in \
darwin) \
ARCHS='amd64 arm64'; \
;; \
linux) \
ARCHS='386 amd64 arm arm64'; \
;; \
windows) \
ARCHS='386 amd64 arm64'; \
EXT=".exe"; \
;; \
esac; \
for ARCH in $$ARCHS; do \
echo Building release binary for $$OS/$$ARCH...; \
test -d release/$$OS/$$ARCH|| mkdir -p release/$$OS/$$ARCH; \
env GOOS=$$OS GOARCH=$$ARCH $(GO_BUILD) $(if $(GO_TAGS),-tags $(GO_TAGS)) -ldflags "-w -s -X 'github.com/cilium/cilium/hubble/pkg.Version=${VERSION}'" -o release/$$OS/$$ARCH/$(TARGET)$$EXT; \
tar -czf release/$(TARGET)-$$OS-$$ARCH.tar.gz -C release/$$OS/$$ARCH $(TARGET)$$EXT; \
(cd release && sha256sum $(TARGET)-$$OS-$$ARCH.tar.gz > $(TARGET)-$$OS-$$ARCH.tar.gz.sha256sum); \
done; \
rm -r release/$$OS; \
done;
clean:
rm -f $(TARGET)
.PHONY: all hubble
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...