Skip to content

Commit

Permalink
hubble-relay: update to 1.15.12
Browse files Browse the repository at this point in the history
Signed-off-by: Daichi Sakaue <[email protected]>
  • Loading branch information
yokaze committed Dec 26, 2024
1 parent de01a36 commit e95862c
Show file tree
Hide file tree
Showing 7 changed files with 54 additions and 7 deletions.
1 change: 1 addition & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ jobs:
container-image: "hubble"
- dir: "./hubble-relay"
container-image: "hubble-relay"
make-post-targets: "cilium-checkout cilium-test-e2e-setup cilium-test-e2e-upgrade-inotify test-e2e"
request-scan: "false"
- dir: "./hubble-ui"
container-image: "hubble-ui-frontend"
Expand Down
24 changes: 20 additions & 4 deletions cilium/e2e/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
SUDO ?= sudo
IMAGE_TAG ?= ghcr.io/cybozu/cilium:$(shell cat ../TAG)
CILIUM := bin/cilium
CILIUM_DIR := ../src/cilium

CILIUM_AGENT_IMAGE_TAG ?= ghcr.io/cybozu/cilium:$(shell cat ../TAG)
HUBBLE_RELAY_IMAGE_TAG ?= ghcr.io/cybozu/hubble-relay:$(shell cat ../../hubble-relay/TAG)

.PHONY: setup
setup:
mkdir -p bin
Expand All @@ -24,12 +26,26 @@ upgrade-inotify:
.PHONY: start
start:
cd $(CILIUM_DIR); ./contrib/scripts/kind.sh --xdp "" 3 "" "" "none" "ipv4"
kind load docker-image $(IMAGE_TAG)
kind load docker-image $(CILIUM_AGENT_IMAGE_TAG)
$(CILIUM) install --wait \
--chart-directory=$(CILIUM_DIR)/install/kubernetes/cilium \
--values values.yaml \
--set image.repository=$(shell echo $(CILIUM_AGENT_IMAGE_TAG) | cut -d':' -f1) \
--set image.tag=$(shell echo $(CILIUM_AGENT_IMAGE_TAG) | cut -d':' -f2)

.PHONY: start-hubble-relay
start-hubble-relay:
cd $(CILIUM_DIR); ./contrib/scripts/kind.sh --xdp "" 3 "" "" "none" "ipv4"
CILIUM_AGENT_IMAGE_TAG=quay.io/cilium/cilium:v$(shell echo $(HUBBLE_RELAY_IMAGE_TAG) | cut -d':' -f2 | cut -d'.' -f1-3); \
docker pull $${CILIUM_AGENT_IMAGE_TAG}; \
kind load docker-image $${CILIUM_AGENT_IMAGE_TAG}
kind load docker-image $(HUBBLE_RELAY_IMAGE_TAG)
$(CILIUM) install --wait \
--chart-directory=$(CILIUM_DIR)/install/kubernetes/cilium \
--values values.yaml \
--set image.repository=$(shell echo $(IMAGE_TAG) | cut -d':' -f1) \
--set image.tag=$(shell echo $(IMAGE_TAG) | cut -d':' -f2) \
--set hubble.relay.image.repository=$(shell echo $(HUBBLE_RELAY_IMAGE_TAG) | cut -d':' -f1) \
--set hubble.relay.image.tag=$(shell echo $(HUBBLE_RELAY_IMAGE_TAG) | cut -d':' -f2) \
--set hubble.relay.image.pullPolicy=Never

# check-log-errors is disabled in CI to accomodate with the following issue:
# https://github.com/cilium/image-tools/pull/267
Expand Down
6 changes: 6 additions & 0 deletions cilium/e2e/values.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
autoDirectNodeRoutes: true
devices: eth+
enableIPv6Masquerade: false
hubble:
enabled: true
relay:
enabled: true
image:
useDigest: false
image:
pullPolicy: Never
useDigest: false
Expand Down
2 changes: 1 addition & 1 deletion hubble-relay/BRANCH
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.14
1.15
2 changes: 1 addition & 1 deletion hubble-relay/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG BASE_IMAGE=ghcr.io/cybozu/ubuntu:22.04
ARG GOLANG_IMAGE=ghcr.io/cybozu/golang:1.22-jammy

# Stage1: build
FROM ${GOLANG_IMAGE} as build
FROM ${GOLANG_IMAGE} AS build

COPY TAG /

Expand Down
24 changes: 24 additions & 0 deletions hubble-relay/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
IMAGE_TAG ?= ghcr.io/cybozu/hubble-relay:$(shell cat TAG)

.PHONY: build
build:
docker build . --tag=$(IMAGE_TAG)

.PHONY: cilium-checkout
cilium-checkout:
@$(MAKE) -C ../cilium checkout

.PHONY: cilium-test-e2e-setup
cilium-test-e2e-setup:
@$(MAKE) -C ../cilium test-e2e-setup

.PHONY: cilium-test-e2e-upgrade-inotify
cilium-test-e2e-upgrade-inotify:
@$(MAKE) -C ../cilium test-e2e-upgrade-inotify

.PHONY: test-e2e
test-e2e:
@$(MAKE) -C ../cilium/e2e start-hubble-relay
kubectl wait deployments -A --all --for condition=Available --timeout=300s
kubectl wait pods -A --all --for condition=Ready --timeout=300s
@$(MAKE) -C ../cilium/e2e stop
2 changes: 1 addition & 1 deletion hubble-relay/TAG
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.14.14.1
1.15.12.1

0 comments on commit e95862c

Please sign in to comment.