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

Add 1.16.3 #12

Merged
merged 7 commits into from
Nov 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 71 additions & 0 deletions 1.15.2/cilium/envoy-fixes.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
From 9d84536cb003b6ab0b4142b142c238ee531860e3 Mon Sep 17 00:00:00 2001
From: root <[email protected]>
Date: Thu, 7 Nov 2024 09:51:32 +0000
Subject: [PATCH] Envoy fixes

* updated checksum
* workaround to allow running as root
---
WORKSPACE | 3 ++-
patches/0005-ci-change-googleurl-dep.patch | 29 ++++++++++++++++++++++
2 files changed, 31 insertions(+), 1 deletion(-)
create mode 100644 patches/0005-ci-change-googleurl-dep.patch

diff --git a/WORKSPACE b/WORKSPACE
index 115aefc..723fc53 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -36,6 +36,7 @@ git_repository(
"@//patches:0002-upstream-Add-callback-for-upstream-authorization.patch",
"@//patches:0003-tcp_proxy-Add-filter-state-proxy_read_before_connect.patch",
"@//patches:0004-listener-add-socket-options.patch",
+ "@//patches:0005-ci-change-googleurl-dep.patch",
],
# // clang-format off: Envoy's format check: Only repository_locations.bzl may contains URL references
remote = "https://github.com/envoyproxy/envoy.git",
@@ -65,7 +66,7 @@ envoy_dependencies()

load("@envoy//bazel:repositories_extra.bzl", "envoy_dependencies_extra")

-envoy_dependencies_extra()
+envoy_dependencies_extra(ignore_root_user_error=True)

load("@envoy//bazel:python_dependencies.bzl", "envoy_python_dependencies")

diff --git a/patches/0005-ci-change-googleurl-dep.patch b/patches/0005-ci-change-googleurl-dep.patch
new file mode 100644
index 0000000..e27ec76
--- /dev/null
+++ b/patches/0005-ci-change-googleurl-dep.patch
@@ -0,0 +1,29 @@
+From a0da603209681f425f1e1fb2c7abddd24f3e2b1f Mon Sep 17 00:00:00 2001
+From: Alyssa Wilk <[email protected]>
+Date: Wed, 9 Oct 2024 19:30:30 +0000
+Subject: [PATCH] ci: change googleurl dep
+
+Signed-off-by: Alyssa Wilk <[email protected]>
+---
+ bazel/repository_locations.bzl | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/bazel/repository_locations.bzl b/bazel/repository_locations.bzl
+index b6e02d489b..e42a6e7e2f 100644
+--- a/bazel/repository_locations.bzl
++++ b/bazel/repository_locations.bzl
+@@ -1222,9 +1222,9 @@ REPOSITORY_LOCATIONS_SPEC = dict(
+ project_name = "Chrome URL parsing library",
+ project_desc = "Chrome URL parsing library",
+ project_url = "https://quiche.googlesource.com/googleurl",
+- # Static snapshot of https://quiche.googlesource.com/googleurl/+archive/dd4080fec0b443296c0ed0036e1e776df8813aa7.tar.gz
+ version = "dd4080fec0b443296c0ed0036e1e776df8813aa7",
+- sha256 = "59f14d4fb373083b9dc8d389f16bbb817b5f936d1d436aa67e16eb6936028a51",
++ sha256 = "fc694942e8a7491dcc1dde1bddf48a31370a1f46fef862bc17acf07c34dc6325",
++ # Static snapshot of https://quiche.googlesource.com/googleurl/+archive/dd4080fec0b443296c0ed0036e1e776df8813aa7.tar.gz
+ urls = ["https://storage.googleapis.com/quiche-envoy-integration/{version}.tar.gz"],
+ use_category = ["controlplane", "dataplane_core"],
+ extensions = [],
+--
+2.43.0
+
--
2.34.1
5 changes: 3 additions & 2 deletions cilium/rockcraft.yaml → 1.15.2/cilium/rockcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,9 @@ parts:
override-build: |
export PKG_BUILD=1
export DESTDIR=$CRAFT_PART_INSTALL
# Workaround for bazel python plugin/bits to ignore running as root
sed -i -e 's/envoy_dependencies_extra()/envoy_dependencies_extra(ignore_root_user_error=True)/g' WORKSPACE
export EMAIL=root@localhost
git am --ignore-whitespace $CRAFT_PROJECT_DIR/envoy-fixes.patch

make -C proxylib all
mkdir -p $CRAFT_PART_INSTALL/usr/lib/
cp proxylib/libcilium.so $CRAFT_PART_INSTALL/usr/lib/
Expand Down
123 changes: 123 additions & 0 deletions 1.16.3/cilium-operator-generic/rockcraft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
name: cilium-operator-generic
summary: Cilium operator rock for the Cilium CNI.
description: This rock is a drop in replacement for the cilium/operator-generic image.
version: "1.16.3"
license: Apache-2.0

base: bare
build-base: [email protected]
platforms:
amd64:
arm64:

environment:
GOPS_CONFIG_DIR: "/"

services:
cilium:
command: /usr/bin/cilium-operator-generic
override: replace
startup: enabled

parts:
builder-img-deps:
plugin: nil
build-packages:
- unzip
- binutils
- coreutils
- curl
- gcc
- git
- libc6-dev
- make

build-deps:
plugin: nil
build-snaps:
- go/1.22/stable
build-packages:
- autoconf
- automake
- autopoint
- autotools-dev
- build-essential
- pkg-config

debug-wrapper:
after: [build-deps, builder-img-deps]
plugin: go
source-type: git
source: https://github.com/cilium/cilium.git
source-tag: v1.16.3
source-subdir: images/builder
build-environment:
- CGO_ENABLED: 0
override-build: |
cd $CRAFT_PART_SRC_WORK
go install github.com/go-delve/delve/cmd/dlv@latest
go install -ldflags "-s -w" debug-wrapper.go

protoc:
plugin: cmake
source-type: git
source: https://github.com/protocolbuffers/protobuf.git
source-tag: v28.2
source-submodules:
- third_party/googletest
- third_party/abseil-cpp
- third_party/jsoncpp
cmake-generator: Ninja
build-packages:
- g++
- git
override-build: |
cmake $CRAFT_PART_SRC -G Ninja \
-DCMAKE_BUILD_TYPE="Release" \
-DCMAKE_INSTALL_PREFIX="$CRAFT_PART_INSTALL/usr/local"
ninja install
stage:
- -usr/local/lib
- -usr/local/include/absl
- -usr/local/include/utf8_range.h
- -usr/local/include/utf8_validity.h

protoplugins:
plugin: go
source: ""
override-build: |
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@1adbea267b837660726952ed6711b348dee87aa5
go install google.golang.org/protobuf/cmd/[email protected]
go install github.com/mfridman/[email protected]
go install github.com/pseudomuto/protoc-gen-doc/cmd/[email protected]

runtime-img-deps:
plugin: nil
stage-packages:
- ca-certificates

gops:
after: [build-deps]
plugin: go
source-type: git
source: https://github.com/google/gops.git
source-tag: v0.3.27
build-environment:
- CGO_ENABLED: 0
override-build: |
go install -ldflags "-s -w" ./...

cilium-operator:
after: [build-deps, builder-img-deps]
plugin: make
source-type: git
source: https://github.com/cilium/cilium.git
source-tag: v1.16.3
override-build: |
export VARIANT="generic"
make build-container-operator-$VARIANT
export DESTDIR=$CRAFT_PART_INSTALL
make install-container-binary-operator-$VARIANT
make licenses-all

cp $CRAFT_PART_BUILD/LICENSE.all $CRAFT_PART_INSTALL/
Loading