Skip to content

[v1.15 - Author backport] envoy: enable k8s secret watch even if only CEC is enabled #50339

[v1.15 - Author backport] envoy: enable k8s secret watch even if only CEC is enabled

[v1.15 - Author backport] envoy: enable k8s secret watch even if only CEC is enabled #50339

Workflow file for this run

name: Documentation Updates
# Any change in triggers needs to be reflected in the concurrency group.
on:
pull_request: {}
push:
branches:
- v1.15
- ft/v1.15/**
merge_group:
types: [checks_requested]
permissions: read-all
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.event.after || github.event.merge_group && github.run_id }}
cancel-in-progress: ${{ !github.event.merge_group }}
jobs:
check_changes:
name: Deduce required tests from code changes
runs-on: ubuntu-22.04
outputs:
docs-tree: ${{ steps.docs-tree.outputs.src }}
steps:
- name: Checkout code
if: ${{ !github.event.pull_request }}
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
persist-credentials: false
- name: Check code changes
uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
id: docs-tree
with:
# For `push` events, compare against the `ref` base branch
# For `pull_request` events, this is ignored and will compare against the pull request base branch
base: ${{ github.ref }}
filters: |
src:
- .github/workflows/documentation.yaml
- 'Documentation/**'
- 'bugtool/cmd/**'
- 'cilium/cmd/**'
- 'cilium-health/cmd/**'
- 'daemon/cmd/**'
- 'hubble-relay/cmd/**'
- 'install/kubernetes/**'
- 'operator/cmd/**'
- README.rst
# Runs only if code under Documentation or */cmd/ is changed as the docs
# should be unaffected otherwise.
build-html:
needs: check_changes
if: ${{ needs.check_changes.outputs.docs-tree == 'true' }}
name: Validate & Build HTML
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
persist-credentials: false
- name: Build HTML
uses: docker://quay.io/cilium/docs-builder:00a1255af5b626118dae7a9158600748c2f1cf36@sha256:0950598ee58d34890308371cb0b5e3e47a587907ae5babb7c7d294d6b6542b36
with:
entrypoint: ./Documentation/check-build.sh
args: html
check-generated-documentation:
name: Check generated documentation
if: ${{ github.event_name != 'merge_group' }}
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
persist-credentials: false
- name: Install Go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
# renovate: datasource=golang-version depName=go
go-version: 1.21.8
- name: Set clang directory
id: set_clang_dir
run: echo "clang_dir=$HOME/.clang" >> $GITHUB_OUTPUT
- name: Cache LLVM and Clang
id: cache-llvm
uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
with:
path: ${{ steps.set_clang_dir.outputs.clang_dir }}
key: llvm-10.0
- name: Install LLVM and Clang prerequisites
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends libtinfo5
- name: Install LLVM and Clang
uses: KyleMayes/install-llvm-action@be40c5af3a4adc3e4a03199995ab73aa37536712 # v1.9.0
with:
version: "10.0"
directory: ${{ steps.set_clang_dir.outputs.clang_dir }}
cached: ${{ steps.cache-llvm.outputs.cache-hit }}
# Building Cilium as precondition to generate documentation artifacts.
- name: Build Cilium
run: |
make -C Documentation cilium-build
- name: Check generated documentation
run: |
SKIP_BUILD=true make -C Documentation check