Skip to content

Commit e98edf6

Browse files
committed
Merge tag 'v1.19.6' into v1.19-dd
Release v1.19.6
2 parents a6c0b7c + 9a89824 commit e98edf6

410 files changed

Lines changed: 14401 additions & 2348 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Cilium",
3-
"image": "quay.io/cilium/cilium-builder:6575744abb6036cc127c1b4d5845c5c03277c44a@sha256:1e623ddfc58fc4e4012861b3b854b02ecfea073011fe05a2d05deccc6474d144",
3+
"image": "quay.io/cilium/cilium-builder:f22cbf4d510e3e403b6cc3e4670f5b157385ea2c@sha256:a7054a6dfac28873123b9047f025c21455dbcec681b4a02674703cbbdd73e0df",
44
"workspaceFolder": "/go/src/github.com/cilium/cilium",
55
"workspaceMount": "source=${localWorkspaceFolder},target=/go/src/github.com/cilium/cilium,type=bind",
66
"features": {

.github/actions/kind-external-network/action.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/usr/bin/env bash
22

3+
set -euo pipefail
4+
35
LVH="$1"
46

57
lvh_wrapper() {

.github/actions/kind-external-targets/action.sh

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/usr/bin/env bash
22

3+
set -euo pipefail
4+
35
LVH="$1"
46
KINDNETWORK="$2"
57
IP4TARGET="$3"
@@ -15,6 +17,20 @@ lvh_wrapper() {
1517
fi
1618
}
1719

20+
# Run the given command, retrying up to 5 times on failure.
21+
retry() {
22+
local attempt
23+
for attempt in $(seq 1 5); do
24+
if "$@"; then
25+
return 0
26+
fi
27+
echo "Attempt ${attempt}/5 of '$*' failed, retrying in 5s..." >&2
28+
sleep 5
29+
done
30+
echo "::error::Command '$*' failed after 5 attempts" >&2
31+
return 1
32+
}
33+
1834
TARGETNAME=fake.external.service.cilium
1935
OTHERTARGETNAME=fake.external.service.other.cilium
2036

@@ -113,20 +129,29 @@ http {
113129
EOF
114130

115131
# Start our first external target
116-
CONTAINERID=$(lvh_wrapper docker run -d --name webserver --network $KINDNETWORK \
132+
retry lvh_wrapper docker run -d --name webserver --network $KINDNETWORK \
117133
--ip $IP4TARGET --ip6 $IP6TARGET \
118134
-v ./nginx.conf:/etc/nginx/nginx.conf:ro \
119135
-v ./external-service.cilium.crt:/etc/ssl/external-service.cilium.crt:ro \
120136
-v ./external-service.cilium.key:/etc/ssl/external-service.cilium.key:ro \
121-
nginx)
137+
nginx
122138

123139
# Start the second external target
124-
CONTAINERID=$(lvh_wrapper docker run -d --name other-webserver --network $KINDNETWORK \
140+
retry lvh_wrapper docker run -d --name other-webserver --network $KINDNETWORK \
125141
--ip $IP4OTHERTARGET --ip6 $IP6OTHERTARGET \
126142
-v ./nginx.conf:/etc/nginx/nginx.conf:ro \
127143
-v ./external-service.cilium.crt:/etc/ssl/external-service.cilium.crt:ro \
128144
-v ./external-service.cilium.key:/etc/ssl/external-service.cilium.key:ro \
129-
nginx)
145+
nginx
146+
147+
# Fail fast if either target did not actually come up.
148+
for container in webserver other-webserver; do
149+
running=$(lvh_wrapper docker inspect -f '{{.State.Running}}' "$container")
150+
if [ "$running" != "true" ]; then
151+
echo "::error::External target container '$container' is not running (State.Running=$running)" >&2
152+
exit 1
153+
fi
154+
done
130155

131156
# Get the current CoreDNS config file
132157
kubectl -n kube-system get configmap/coredns -o json | jq ".data.Corefile" -r > Corefile

.github/actions/renovate/entrypoint.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/bash
22

3+
set -euo pipefail
4+
35
apt update
46

57
apt install -y gettext docker-buildx
@@ -12,7 +14,8 @@ ls -lah /var/run/docker.sock
1214

1315
# Add the group of /var/run/docker.sock to ubuntu user
1416
GROUP_ID=$(stat -c '%g' /var/run/docker.sock)
15-
GROUP_NAME=$(getent group "$GROUP_ID" | cut -d: -f1)
17+
# getent exits non-zero when no group matches the id, which is expected here.
18+
GROUP_NAME=$(getent group "$GROUP_ID" | cut -d: -f1 || true)
1619

1720
if [ -z "$GROUP_NAME" ]; then
1821
GROUP_NAME="docker_group"

.github/actions/set-env-variables/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ runs:
1919
echo "BGP_CONTROL_PLANE_HELM_VALUES=--helm-set=bgpControlPlane.enabled=true" >> $GITHUB_ENV
2020
echo "CILIUM_CLI_RELEASE_REPO=cilium/cilium-cli" >> $GITHUB_ENV
2121
# renovate: datasource=github-releases depName=cilium/cilium-cli
22-
CILIUM_CLI_VERSION="v0.19.4"
22+
CILIUM_CLI_VERSION="v0.19.5"
2323
echo "CILIUM_CLI_VERSION=$CILIUM_CLI_VERSION" >> $GITHUB_ENV
2424
echo "CILIUM_CLI_IMAGE_REPO=$REGISTRY_DEV/cilium/cilium-cli-ci" >> $GITHUB_ENV
2525
echo "CILIUM_CLI_SKIP_BUILD=true" >> $GITHUB_ENV
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
quay.io/cilium/cilium-runtime:0c9885c9481c1b88b60712849cd6c399a1facfb2@sha256:af5796c16b6eff60f98729cd3fa27750615e1caf8904d29a9b81f6a8231eceb8
1+
quay.io/cilium/cilium-runtime:2b0b19b6469911dedd1cf0b69d15eb9db6245914@sha256:2414e2fc8ee3f2d5eaf8a84f895a49b8adea4b34735339ce5f6224486e2f069e

.github/ariane-config.yaml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,15 @@ allowed-teams:
44
triggers:
55
/default:
66
workflows:
7-
- cilium-cli.yaml
87
- conformance-kind-proxy-embedded.yaml
9-
- codeql.yaml
10-
- lint-go.yaml
11-
- tests-smoke.yaml
128
- tests-smoke-conformance.yaml
139
- tests-smoke-ipv6.yaml
1410
- tests-cifuzz.yaml
1511
- lint-ariane-config.yaml
1612
- conformance-kubespray.yaml
17-
- lint-build-commits.yaml
18-
- documentation.yaml
1913
- k8s-kind-network-e2e.yaml
2014
- lint-images-base.yaml
21-
- lint-workflows.yaml
2215
- k8s-kind-network-policies-e2e.yaml
23-
- lint-bpf-checks.yaml
2416
# This trigger needs to be kept in sync with ariane-scheduled.yaml workflow
2517
/test\s*:
2618
workflows:
@@ -201,4 +193,10 @@ workflows:
201193
tests-cifuzz.yaml:
202194
paths-regex: (\.github/workflows/tests-cifuzz\.yaml|fuzz_test.go|test/fuzzing/)
203195
k8s-kind-network-policies-e2e.yaml:
204-
paths-ignore-regex: (Documentation/|test/)
196+
paths-ignore-regex: (Documentation/|test/)
197+
tests-smoke-conformance.yaml:
198+
paths-ignore-regex: ((bpf/complexity-tests|bpf/tests|test|Documentation|hubble|.github/actions/cl2-modules|.github/actions/e2e|.github/actions/ginkgo)/|(.github/renovate\.json5|README.rst|CODEOWNERS|stable.txt|.*\.md|.*_test\.go)$)
199+
k8s-kind-network-e2e.yaml:
200+
paths-ignore-regex: ((bpf/complexity-tests|bpf/tests|test|Documentation|hubble|.github/actions/cl2-modules|.github/actions/e2e|.github/actions/ginkgo)/|(.github/renovate\.json5|README.rst|CODEOWNERS|stable.txt|.*\.md|.*_test\.go)$)
201+
tests-smoke-ipv6.yaml:
202+
paths-ignore-regex: ((bpf/complexity-tests|bpf/tests|test|Documentation|hubble|.github/actions/cl2-modules|.github/actions/e2e|.github/actions/ginkgo)/|(.github/renovate\.json5|README.rst|CODEOWNERS|stable.txt|.*\.md|.*_test\.go)$)

.github/workflows/auto-approve.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ jobs:
2626
approve:
2727
name: Approve
2828
needs: pre-approve
29-
environment: auto-approve
29+
environment:
30+
name: auto-approve
31+
deployment: false
3032
runs-on: ubuntu-24.04
3133
permissions: {}
3234
steps:

.github/workflows/build-go-caches.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
comment_on_pr: false
6565

6666
- name: Checkout code
67-
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
67+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
6868
with:
6969
persist-credentials: false
7070

@@ -75,7 +75,7 @@ jobs:
7575
7676
# Load Golang cache build from GitHub
7777
- name: Load Golang cache build from GitHub
78-
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
78+
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
7979
id: go-cache
8080
with:
8181
path: /tmp/.cache/go

.github/workflows/build-images-base-v1.19.yaml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,13 @@ jobs:
3636
if: ${{ vars.QUAY_BASE_RELEASE_ENABLED == 'true' && ! (github.event_name == 'pull_request_target' && startsWith(github.head_ref, 'renovate/')) }}
3737
name: Build and Push Images
3838
timeout-minutes: 60
39-
environment: 'release-base-images'
39+
environment:
40+
name: ${{ inputs.environment || 'release-base-images' }}
41+
deployment: false
4042
runs-on: ubuntu-24.04
4143
steps:
4244
- name: Checkout base or default branch (trusted)
43-
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
45+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
4446
with:
4547
# This workflow is supposed to run only on pull_request_target context, but in case workflow call is made from a push context we still keep the default to default_branch
4648
ref: ${{ github.base_ref || github.event.repository.default_branch }}
@@ -68,19 +70,21 @@ jobs:
6870
uses: ./.github/actions/set-env-variables
6971

7072
- name: Set up Docker Buildx
71-
uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4.1.0
73+
uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4.2.0
7274

7375
- name: Set up QEMU
7476
id: qemu
75-
uses: docker/setup-qemu-action@06116385d9baf250c9f4dcb4858b16962ea869c3 # v4.1.0
77+
uses: docker/setup-qemu-action@96fe6ef7f33517b61c61be40b68a1882f3264fb8 # v4.2.0
7678

7779
# Warning: since this is a privileged workflow, subsequent workflow job
7880
# steps must take care not to execute untrusted code.
7981
- name: Checkout pull request branch (NOT TRUSTED)
80-
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
82+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
8183
with:
8284
persist-credentials: false
8385
ref: ${{ github.event.pull_request.head.sha }}
86+
# Required by checkout v7+ to fetch fork PR code; see the NOT TRUSTED warning above.
87+
allow-unsafe-pr-checkout: true
8488

8589
- name: Set-up git
8690
run: |
@@ -104,15 +108,15 @@ jobs:
104108
105109
- name: Login to ${{ env.REGISTRY_DEV }}
106110
if: ${{ steps.cilium-runtime-tag-in-repositories.outputs.exists == 'false' }}
107-
uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4.2.0
111+
uses: docker/login-action@af1e73f918a031802d376d3c8bbc3fe56130a9b0 # v4.4.0
108112
with:
109113
registry: ${{ env.REGISTRY_DEV }}
110114
username: ${{ secrets.QUAY_BASE_RELEASE_USERNAME_202411 }}
111115
password: ${{ secrets.QUAY_BASE_RELEASE_PASSWORD_202411 }}
112116

113117
- name: Release build cilium-runtime
114118
if: ${{ steps.cilium-runtime-tag-in-repositories.outputs.exists == 'false' }}
115-
uses: docker/build-push-action@f9f3042f7e2789586610d6e8b85c8f03e5195baf # v7.2.0
119+
uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0
116120
id: docker_build_release_runtime
117121
with:
118122
provenance: false
@@ -182,15 +186,15 @@ jobs:
182186
183187
- name: Login to ${{ env.REGISTRY_DEV }}
184188
if: ${{ steps.cilium-builder-tag-in-repositories.outputs.exists == 'false' && steps.cilium-runtime-tag-in-repositories.outputs.exists != 'false' }}
185-
uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4.2.0
189+
uses: docker/login-action@af1e73f918a031802d376d3c8bbc3fe56130a9b0 # v4.4.0
186190
with:
187191
registry: ${{ env.REGISTRY_DEV }}
188192
username: ${{ secrets.QUAY_BASE_RELEASE_USERNAME_202411 }}
189193
password: ${{ secrets.QUAY_BASE_RELEASE_PASSWORD_202411 }}
190194

191195
- name: Release build cilium-builder
192196
if: ${{ steps.cilium-builder-tag-in-repositories.outputs.exists == 'false' }}
193-
uses: docker/build-push-action@f9f3042f7e2789586610d6e8b85c8f03e5195baf # v7.2.0
197+
uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0
194198
id: docker_build_release_builder
195199
with:
196200
provenance: false

0 commit comments

Comments
 (0)