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

Update to cilium 1.15.2 #6

Merged
merged 1 commit into from
Mar 27, 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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.rock
8 changes: 4 additions & 4 deletions cilium-operator-generic/rockcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
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.14.5"
version: "1.15.2"
license: Apache-2.0

base: bare
Expand Down Expand Up @@ -48,7 +48,7 @@ parts:
plugin: go
source-type: git
source: https://github.com/cilium/cilium.git
source-tag: v1.14.5
source-tag: v1.15.2
source-subdir: images/builder
build-environment:
- CGO_ENABLED: 0
Expand Down Expand Up @@ -112,12 +112,12 @@ parts:
plugin: make
source-type: git
source: https://github.com/cilium/cilium.git
source-tag: v1.14.5
source-tag: v1.15.2
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/
26 changes: 14 additions & 12 deletions cilium/rockcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: cilium
summary: Cilium agent rock for the Cilium CNI.
description: This rock is a drop in replacement for the cilium/cilium image.
version: "1.14.5"
version: "1.15.2"
license: Apache-2.0

base: [email protected]
Expand All @@ -15,7 +15,7 @@ environment:

services:
cilium:
command: /usr/bin/cilium
command: /usr/bin/cilium-dbg
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's the -dbg command? is this an intended switch

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The cilium-dbg command is just a rename of the cilium binary that's in agent images(cli), so the switch is intentional. For reference you can check upstream image

override: replace
startup: enabled

Expand All @@ -34,13 +34,13 @@ parts:
mv bazelisk-linux-$CRAFT_ARCH_BUILD_FOR /usr/bin/bazelisk
chmod +x /usr/bin/bazelisk
ln -sf /usr/bin/bazelisk /usr/bin/bazel

cilium-envoy:
after: [bazelisk]
plugin: make
source-type: git
source: https://github.com/cilium/proxy.git
source-tag: v1.26
source-tag: v1.27
build-packages:
- autoconf
- automake
Expand Down Expand Up @@ -72,6 +72,8 @@ 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
make -C proxylib all
mkdir -p $CRAFT_PART_INSTALL/usr/lib/
cp proxylib/libcilium.so $CRAFT_PART_INSTALL/usr/lib/
Expand Down Expand Up @@ -109,7 +111,7 @@ parts:
plugin: go
source-type: git
source: https://github.com/cilium/cilium.git
source-tag: v1.14.5
source-tag: v1.15.2
source-subdir: images/builder
build-environment:
- CGO_ENABLED: 0
Expand Down Expand Up @@ -205,7 +207,7 @@ parts:
- -lib/pkgconfig
- -bin/iptables-xml
organize:
sbin: usr/sbin
sbin: usr/sbin

iptables-wrapper:
after: [iptables]
Expand All @@ -221,7 +223,7 @@ parts:
cp $CRAFT_STAGE/usr/sbin/iptables-wrapper $CRAFT_PART_INSTALL/usr/sbin/
rm -rf /usr/sbin
mv /usr/sbin-tmp /usr/sbin

bpftool:
plugin: make
source-type: git
Expand All @@ -235,7 +237,7 @@ parts:
- libelf1
organize:
usr/local/sbin/bpftool: usr/sbin/bpftool

llvm-10-bpf:
plugin: cmake
source-type: git
Expand Down Expand Up @@ -297,18 +299,18 @@ parts:
plugin: make
source-type: git
source: "https://github.com/cilium/hubble.git"
source-tag: v0.12.3
source-tag: v0.13.2
override-build: |
craftctl default
mkdir -p $CRAFT_PART_INSTALL/etc/bash_completion.d
$CRAFT_PART_INSTALL/usr/local/bin/hubble completion bash > $CRAFT_PART_INSTALL/etc/bash_completion.d/hubble

cilium:
after: [build-deps, builder-img-deps, llvm-10-bpf]
plugin: make
source-type: git
source: https://github.com/cilium/cilium.git
source-tag: v1.14.5
source-tag: v1.15.2
build-environment:
- DISABLE_ENVOY_INSTALLATION: 1
override-build: |
Expand All @@ -317,7 +319,7 @@ parts:
make install-container-binary
make install-bash-completion
make licenses-all

cp $CRAFT_PART_BUILD/LICENSE.all $CRAFT_PART_INSTALL/
cp $CRAFT_PART_SRC/images/cilium/init-container.sh $CRAFT_PART_INSTALL/
cp $CRAFT_PART_SRC/plugins/cilium-cni/install-plugin.sh $CRAFT_PART_INSTALL/
Expand Down
Loading