Skip to content

Commit

Permalink
Merge branch 'main' into bug/GH_ISSUE_32693
Browse files Browse the repository at this point in the history
  • Loading branch information
dswaffordcw committed May 24, 2024
2 parents 2ea8cb3 + edc9cba commit 9b8262e
Show file tree
Hide file tree
Showing 507 changed files with 12,217 additions and 10,645 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Cilium",
"image": "quay.io/cilium/cilium-builder:cc78cacf85872adae4236ee8808ef491e9b036fa@sha256:43e8907004daabcb93ce5bc5a8dcb622225bb84d555ec016218bcc3f5127844d",
"image": "quay.io/cilium/cilium-builder:417f4406bb9abb90f0e5a5a811545284f8446552@sha256:d20ae3493a53573a227899808f0789c14641096b52ea682bacd112ddca28c0ca",
"workspaceFolder": "/go/src/github.com/cilium/cilium",
"workspaceMount": "source=${localWorkspaceFolder},target=/go/src/github.com/cilium/cilium,type=bind",
"features": {
Expand Down
9 changes: 3 additions & 6 deletions .github/actions/azure/k8s-versions.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
# List of k8s version for AKS tests
---
include:
- version: "1.26"
location: westus3
index: 1
- version: "1.27"
location: westus2
index: 2
index: 1
- version: "1.28"
location: eastus2
index: 3
index: 2
- version: "1.29"
location: eastus
index: 4
index: 3
default: true
3 changes: 2 additions & 1 deletion .github/actions/ginkgo/main-focus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ include:
# K8sAgentFQDNTest Restart Cilium validate that FQDN is still working
# K8sAgentFQDNTest Validate that FQDN policy continues to work after being updated
# K8sAgentFQDNTest Validate that multiple specs are working correctly
# K8sAgentPerNodeConfigTest Correctly computes config overrides
# K8sAgentPerNodeConfigTest Correctly computes config overrides with CNC v2alpha1
# K8sAgentPerNodeConfigTest Correctly computes config overrides with CNC v2
- focus: "f02-agent-fqdn"
cliFocus: "K8sAgentFQDNTest|K8sAgentPerNodeConfigTest"

Expand Down
10 changes: 5 additions & 5 deletions .github/actions/ginkgo/main-k8s-versions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,25 @@ include:
# renovate: datasource=docker
kube-image: "quay.io/cilium/kindest-node:v1.30.0@sha256:edcb457c0b2ecc69a0fa9b0878bdcfd4a0f1205340cf08bf36a03d3a94a16dd9"
# renovate: datasource=docker depName=quay.io/lvh-images/kind
kernel: "bpf-next-20240501.013106@sha256:cd813e430144019ef34c7480a352349de282e3f2745aac1c567bfdd88bd06089"
kernel: "bpf-next-20240515.073534@sha256:75ba3187777e13dea7f96a6a3d3c239725324fb477429e4622ed24ab6b397745"

- k8s-version: "1.29"
ip-family: "dual"
# renovate: datasource=docker
kube-image: "kindest/node:v1.29.2@sha256:51a1434a5397193442f0be2a297b488b6c919ce8a3931be0ce822606ea5ca245"
kube-image: "kindest/node:v1.29.4@sha256:3abb816a5b1061fb15c6e9e60856ec40d56b7b52bcea5f5f1350bc6e2320b6f8"
# renovate: datasource=docker depName=quay.io/lvh-images/kind
kernel: "rhel8-20240404.144247@sha256:3d3510c373eb93a66518a30b715e6b3209a768ff816efe95d8da24107e90e70e"

- k8s-version: "1.28"
ip-family: "dual"
# renovate: datasource=docker
kube-image: "kindest/node:v1.28.7@sha256:9bc6c451a289cf96ad0bbaf33d416901de6fd632415b076ab05f5fa7e4f65c58"
kube-image: "kindest/node:v1.28.9@sha256:dca54bc6a6079dd34699d53d7d4ffa2e853e46a20cd12d619a09207e35300bd0"
# renovate: datasource=docker depName=quay.io/lvh-images/kind
kernel: "rhel8-20240404.144247@sha256:3d3510c373eb93a66518a30b715e6b3209a768ff816efe95d8da24107e90e70e"

- k8s-version: "1.27"
ip-family: "dual"
# renovate: datasource=docker
kube-image: "kindest/node:v1.27.11@sha256:681253009e68069b8e01aad36a1e0fa8cf18bb0ab3e5c4069b2e65cafdd70843"
kube-image: "kindest/node:v1.27.13@sha256:17439fa5b32290e3ead39ead1250dca1d822d94a10d26f1981756cd51b24b9d8"
# renovate: datasource=docker depName=quay.io/lvh-images/kind
kernel: "5.4-20240417.104652@sha256:6f1c4869e9b6e5d9057b9f707fa6e77edd41416d58c84d75e417650a6a8c3b85"
kernel: "5.4-20240515.073534@sha256:cbfb27c90c6de1a099705c14d5c4369300e6e3231e3d349f765303602a10968e"
6 changes: 3 additions & 3 deletions .github/actions/lvh-kind/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ runs:
using: composite
steps:
- name: Provision LVH VMs
uses: cilium/little-vm-helper@a4311c6d054de3008bdf9195b0fabf6ee60d8bdd # v0.0.17
uses: cilium/little-vm-helper@3c748d6fc9d6c44a433de85a66f70e8f7043be04 # v0.0.18
with:
test-name: ${{ inputs.test-name }}
image-version: ${{ inputs.kernel }}
Expand All @@ -31,12 +31,12 @@ runs:
mem: 12G
install-dependencies: 'true'
port-forward: '6443:6443'
ssh-startup-wait-retries: 600
ssh-connect-wait-retries: 600
cmd: |
git config --global --add safe.directory /host
- name: Create K8s cluster
uses: cilium/little-vm-helper@a4311c6d054de3008bdf9195b0fabf6ee60d8bdd # v0.0.17
uses: cilium/little-vm-helper@3c748d6fc9d6c44a433de85a66f70e8f7043be04 # v0.0.18
with:
provision: 'false'
cmd: |
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/set-env-variables/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ runs:
echo "GCP_PERF_RESULTS_BUCKET=gs://cilium-scale-results" >> $GITHUB_ENV
# renovate: datasource=github-releases depName=kubernetes-sigs/kind
KIND_VERSION="v0.22.0"
KIND_VERSION="v0.23.0"
# renovate: datasource=docker
KIND_K8S_IMAGE="kindest/node:v1.29.2@sha256:51a1434a5397193442f0be2a297b488b6c919ce8a3931be0ce822606ea5ca245"
KIND_K8S_IMAGE="kindest/node:v1.29.4@sha256:3abb816a5b1061fb15c6e9e60856ec40d56b7b52bcea5f5f1350bc6e2320b6f8"
KIND_K8S_VERSION=$(echo "$KIND_K8S_IMAGE" | sed -r 's|.+:(v[0-9a-z.-]+)(@.+)?|\1|')
echo "KIND_VERSION=$KIND_VERSION" >> $GITHUB_ENV
Expand Down
18 changes: 9 additions & 9 deletions .github/maintainers-little-helper.yaml
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
move-to-projects-for-labels-xored:
v1.15:
needs-backport/1.15:
project: "https://github.com/cilium/cilium/projects/282"
project: "https://github.com/cilium/cilium/projects/286"
column: "Needs backport from main"
backport-pending/1.15:
project: "https://github.com/cilium/cilium/projects/282"
project: "https://github.com/cilium/cilium/projects/286"
column: "Backport pending to v1.15"
backport-done/1.15:
project: "https://github.com/cilium/cilium/projects/282"
project: "https://github.com/cilium/cilium/projects/286"
column: "Backport done to v1.15"
v1.14:
needs-backport/1.14:
project: "https://github.com/cilium/cilium/projects/283"
project: "https://github.com/cilium/cilium/projects/285"
column: "Needs backport from main"
backport-pending/1.14:
project: "https://github.com/cilium/cilium/projects/283"
project: "https://github.com/cilium/cilium/projects/285"
column: "Backport pending to v1.14"
backport-done/1.14:
project: "https://github.com/cilium/cilium/projects/283"
project: "https://github.com/cilium/cilium/projects/285"
column: "Backport done to v1.14"
v1.13:
needs-backport/1.13:
project: "https://github.com/cilium/cilium/projects/281"
project: "https://github.com/cilium/cilium/projects/284"
column: "Needs backport from main"
backport-pending/1.13:
project: "https://github.com/cilium/cilium/projects/281"
project: "https://github.com/cilium/cilium/projects/284"
column: "Backport pending to v1.13"
backport-done/1.13:
project: "https://github.com/cilium/cilium/projects/281"
project: "https://github.com/cilium/cilium/projects/284"
column: "Backport done to v1.13"
v1.12:
needs-backport/1.12:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ariane-scheduled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
with:
ref: v${{ matrix.branch }}
persist-credentials: false
Expand Down
39 changes: 14 additions & 25 deletions .github/workflows/build-images-base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Checkout default branch (trusted)
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
with:
ref: ${{ github.event.repository.default_branch }}
persist-credentials: false
Expand All @@ -50,7 +50,7 @@ jobs:
# Warning: since this is a privileged workflow, subsequent workflow job
# steps must take care not to execute untrusted code.
- name: Checkout pull request branch (NOT TRUSTED)
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
with:
persist-credentials: false
ref: ${{ github.event.pull_request.head.sha }}
Expand Down Expand Up @@ -101,29 +101,19 @@ jobs:
run: |
cosign sign -y quay.io/${{ env.QUAY_ORGANIZATION_DEV }}/cilium-runtime@${{ steps.docker_build_release_runtime.outputs.digest }}
- name: Install Bom
shell: bash
env:
# renovate: datasource=github-releases depName=kubernetes-sigs/bom
BOM_VERSION: v0.6.0
run: |
curl -L https://github.com/kubernetes-sigs/bom/releases/download/${{ env.BOM_VERSION }}/bom-amd64-linux -o bom
sudo mv ./bom /usr/local/bin/bom
sudo chmod +x /usr/local/bin/bom
- name: Generate SBOM
if: ${{ steps.cilium-runtime-tag-in-repositories.outputs.exists == 'false' }}
shell: bash
# To-Do: generate SBOM from source after https://github.com/kubernetes-sigs/bom/issues/202 is fixed
# To-Do: format SBOM output to json after cosign v2.0 is released with https://github.com/sigstore/cosign/pull/2479
run: |
bom generate -o sbom_cilium-runtime_${{ steps.runtime-tag.outputs.tag }}.spdx \
--image=quay.io/${{ env.QUAY_ORGANIZATION_DEV }}/cilium-runtime:${{ steps.runtime-tag.outputs.tag }}
uses: anchore/sbom-action@7ccf588e3cf3cc2611714c2eeae48550fbc17552 # v0.15.11
with:
artifact-name: sbom_cilium-runtime_${{ steps.runtime-tag.outputs.tag }}.spdx.json
output-file: ./sbom_cilium-runtime_${{ steps.runtime-tag.outputs.tag }}.spdx.json
image: quay.io/${{ env.QUAY_ORGANIZATION_DEV }}/cilium-runtime:${{ steps.runtime-tag.outputs.tag }}

- name: Attach SBOM to Container Image
if: ${{ steps.cilium-runtime-tag-in-repositories.outputs.exists == 'false' }}
run: |
cosign attach sbom --sbom sbom_cilium-runtime_${{ steps.runtime-tag.outputs.tag }}.spdx quay.io/${{ env.QUAY_ORGANIZATION_DEV }}/cilium-runtime@${{ steps.docker_build_release_runtime.outputs.digest }}
cosign attach sbom --sbom sbom_cilium-runtime_${{ steps.runtime-tag.outputs.tag }}.spdx.json quay.io/${{ env.QUAY_ORGANIZATION_DEV }}/cilium-runtime@${{ steps.docker_build_release_runtime.outputs.digest }}
- name: Sign SBOM Image
if: ${{ steps.cilium-runtime-tag-in-repositories.outputs.exists == 'false' }}
Expand Down Expand Up @@ -200,17 +190,16 @@ jobs:
- name: Generate SBOM
if: ${{ steps.cilium-builder-tag-in-repositories.outputs.exists == 'false' }}
shell: bash
# To-Do: generate SBOM from source after https://github.com/kubernetes-sigs/bom/issues/202 is fixed
# To-Do: format SBOM output to json after cosign v2.0 is released with https://github.com/sigstore/cosign/pull/2479
run: |
bom generate -o sbom_cilium-builder_${{ steps.builder-tag.outputs.tag }}.spdx \
--image=quay.io/${{ env.QUAY_ORGANIZATION_DEV }}/cilium-builder:${{ steps.builder-tag.outputs.tag }}
uses: anchore/sbom-action@7ccf588e3cf3cc2611714c2eeae48550fbc17552 # v0.15.11
with:
artifact-name: sbom_cilium-builder_${{ steps.builder-tag.outputs.tag }}.spdx.json
output-file: ./sbom_cilium-builder_${{ steps.builder-tag.outputs.tag }}.spdx.json
image: quay.io/${{ env.QUAY_ORGANIZATION_DEV }}/cilium-builder:${{ steps.builder-tag.outputs.tag }}

- name: Attach SBOM to Container Image
if: ${{ steps.cilium-runtime-tag-in-repositories.outputs.exists == 'false' }}
run: |
cosign attach sbom --sbom sbom_cilium-builder_${{ steps.builder-tag.outputs.tag }}.spdx quay.io/${{ env.QUAY_ORGANIZATION_DEV }}/cilium-builder@${{ steps.docker_build_release_builder.outputs.digest }}
cosign attach sbom --sbom sbom_cilium-builder_${{ steps.builder-tag.outputs.tag }}.spdx.json quay.io/${{ env.QUAY_ORGANIZATION_DEV }}/cilium-builder@${{ steps.docker_build_release_builder.outputs.digest }}
- name: Sign SBOM Image
if: ${{ steps.cilium-builder-tag-in-repositories.outputs.exists == 'false' }}
Expand Down
27 changes: 8 additions & 19 deletions .github/workflows/build-images-beta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:

steps:
- name: Checkout main branch to access local actions
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
with:
ref: ${{ github.event.repository.default_branch }}
persist-credentials: false
Expand Down Expand Up @@ -97,7 +97,7 @@ jobs:
fi
- name: Checkout Source Code
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
with:
persist-credentials: false

Expand All @@ -123,27 +123,16 @@ jobs:
run: |
cosign sign -y quay.io/${{ env.QUAY_ORGANIZATION_DEV }}/${{ matrix.name }}-${{ github.event.inputs.suffix }}@${{ steps.docker_build_release.outputs.digest }}
- name: Install Bom
shell: bash
env:
# renovate: datasource=github-releases depName=kubernetes-sigs/bom
BOM_VERSION: v0.6.0
run: |
curl -L https://github.com/kubernetes-sigs/bom/releases/download/${{ env.BOM_VERSION }}/bom-amd64-linux -o bom
sudo mv ./bom /usr/local/bin/bom
sudo chmod +x /usr/local/bin/bom
- name: Generate SBOM
shell: bash
# To-Do: generate SBOM from source after https://github.com/kubernetes-sigs/bom/issues/202 is fixed
# To-Do: format SBOM output to json after cosign v2.0 is released with https://github.com/sigstore/cosign/pull/2479
run: |
bom generate -o sbom_${{ matrix.name }}_${{ github.event.inputs.tag }}.spdx \
--image=quay.io/${{ env.QUAY_ORGANIZATION_DEV }}/${{ matrix.name }}-${{ github.event.inputs.suffix }}:${{ github.event.inputs.tag }}
uses: anchore/sbom-action@7ccf588e3cf3cc2611714c2eeae48550fbc17552 # v0.15.11
with:
artifact-name: sbom_${{ matrix.name }}_${{ github.event.inputs.tag }}.spdx.json
output-file: ./sbom_${{ matrix.name }}_${{ github.event.inputs.tag }}.spdx.json
image: quay.io/${{ env.QUAY_ORGANIZATION_DEV }}/${{ matrix.name }}-${{ github.event.inputs.suffix }}:${{ github.event.inputs.tag }}

- name: Attach SBOM to Container Image
run: |
cosign attach sbom --sbom sbom_${{ matrix.name }}_${{ github.event.inputs.tag }}.spdx quay.io/${{ env.QUAY_ORGANIZATION_DEV }}/${{ matrix.name }}-${{ github.event.inputs.suffix }}@${{ steps.docker_build_release.outputs.digest }}
cosign attach sbom --sbom sbom_${{ matrix.name }}_${{ github.event.inputs.tag }}.spdx.json quay.io/${{ env.QUAY_ORGANIZATION_DEV }}/${{ matrix.name }}-${{ github.event.inputs.suffix }}@${{ steps.docker_build_release.outputs.digest }}
- name: Sign SBOM Image
run: |
Expand Down
Loading

0 comments on commit 9b8262e

Please sign in to comment.