Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
70096f2
build: split the kube module from the agent module
emirhandurmus Nov 8, 2026
4935dec
feat: extract and exec the kube runtime
emirhandurmus Nov 8, 2026
2eef950
build: record the Kubernetes 1.36.6 image and chart pins
emirhandurmus Nov 8, 2026
8cdba6c
feat: load server options from files, the environment, and flags
emirhandurmus Nov 8, 2026
afc515d
build: pack the runtime binaries into the zstd bundle
emirhandurmus Nov 8, 2026
38fb615
feat: link the bundled CNI plugins and host tools after extract
emirhandurmus Nov 8, 2026
859028f
feat: serve containerd from a re-exec of the fat runtime
emirhandurmus Nov 8, 2026
b8ea57e
feat: import pinned images into k8s.io before kubelet starts
emirhandurmus Nov 8, 2026
118bffe
feat: apply the registries file and prefix the pause image
emirhandurmus Nov 8, 2026
e96ff99
build: export the pinned list as the amd64 airgap archive
emirhandurmus Nov 8, 2026
599cdae
test: confirm the embedded runtime bundle contains no image archive
emirhandurmus Nov 8, 2026
7e9ba41
build: add kine for the server database
emirhandurmus Nov 9, 2026
7222cdc
feat: open SQLite by default and honor the datastore endpoint
emirhandurmus Nov 9, 2026
d37f60f
feat: open the database after image import
emirhandurmus Nov 9, 2026
a115726
feat: open the datastore when the server starts
emirhandurmus Nov 9, 2026
9d1af5d
test: reject rotate and reencrypt as server commands
emirhandurmus Nov 9, 2026
08f4b16
test: run the containerd runtime-path check as root
emirhandurmus Nov 9, 2026
6bee943
build: read the pinned Kubernetes patch from the airgap pin file
emirhandurmus Nov 9, 2026
f365612
feat: report the pinned patch as the client and server version
emirhandurmus Nov 9, 2026
ea11e1c
feat: serve the API from the open datastore and keep the issued certi…
emirhandurmus Nov 9, 2026
c00cbeb
TestEmbeddedRuntimeHasNoImage test removed
emirhandurmus Nov 9, 2026
e5581b4
feat: write the node bridge conflist
emirhandurmus Nov 9, 2026
e94ba18
feat: prefer the bundled iptables ahead of the host binary
emirhandurmus Nov 9, 2026
a25cc4c
feat: start kubelet and kube-proxy after the conflist is on disk
emirhandurmus Nov 9, 2026
f18fcd6
feat: stage CoreDNS, local-path, and the metrics API
emirhandurmus Nov 9, 2026
2609d36
feat: apply addon manifests and publish the node IP on LoadBalancer S…
emirhandurmus Nov 9, 2026
b791640
feat: read chart versions from the airgap pin file
emirhandurmus Nov 9, 2026
a0fcb5f
feat: serve the pinned chart tarballs from the apiserver
emirhandurmus Nov 9, 2026
2900696
feat: add the in-process Helm controller
emirhandurmus Nov 9, 2026
2020697
feat: stage the chart CRD before the Traefik and cert-manager releases
emirhandurmus Nov 9, 2026
186eb0f
feat: start the Helm controller and apply the issuer after the charts
emirhandurmus Nov 9, 2026
345b2fa
test: wait for the load balancer controller and ignore the Helm job i…
emirhandurmus Nov 9, 2026
807c462
feat: install the server unit and keep node state on upgrade
emirhandurmus Nov 9, 2026
f5abcd8
build: move the toolchain to Go 1.26.11
emirhandurmus Nov 14, 2026
ff87ac0
feat: run the node on Kubernetes 1.37.2
emirhandurmus Nov 14, 2026
afaa476
build: compile the Linux server from macOS and for arm and riscv64
emirhandurmus Nov 14, 2026
c1034ef
feat: publish an airgap image archive for each architecture
emirhandurmus Nov 14, 2026
4d4aec3
test: boot one node in a Lima guest and require it to become Ready
emirhandurmus Nov 14, 2026
a438355
build: lint, vet, and scan the server module
emirhandurmus Nov 14, 2026
d25e111
ci: lint the server module and build linux/amd64 and linux/arm64
emirhandurmus Nov 14, 2026
0123ac8
feat: publish the server binaries and airgap archives on their own tag
emirhandurmus Nov 14, 2026
2c52046
ci: run certified-conformance against one linux/amd64 node
emirhandurmus Nov 14, 2026
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
116 changes: 116 additions & 0 deletions .github/workflows/ci-kube.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
name: edgelet-kube CI

on:
push:
branches: [ main, develop, edgelet-kube/** ]
paths:
- 'kube/**'
- '.github/workflows/ci-kube.yml'
pull_request:
branches: [ main, develop, edgelet-kube/** ]
paths:
- 'kube/**'
- '.github/workflows/ci-kube.yml'
workflow_dispatch:

permissions: read-all

env:
GO_VERSION: '1.26.11'
GOWORK: 'off'

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3

- name: Set up Go
uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
with:
go-version: ${{ env.GO_VERSION }}
cache-dependency-path: kube/go.sum

- name: No Go workspace
run: test ! -f go.work

- name: go vet
run: make vet-kube

- name: golangci-lint
uses: golangci/golangci-lint-action@82606bf257cbaff209d206a39f5134f0cfbfd2ee # v9.2.1
with:
version: v2.12.2
working-directory: kube
args: --timeout=5m0s --config=.golangci.yaml

- name: Static security analysis
working-directory: kube
run: |
if ! command -v gosec >/dev/null 2>&1; then
go install github.com/securego/gosec/v2/cmd/gosec@latest
fi
GOWORK=off gosec ./cmd/... ./internal/...

build:
name: Build linux/amd64
runs-on: ubuntu-latest
needs: [lint]
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3

- name: Set up Go
uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
with:
go-version: ${{ env.GO_VERSION }}
cache-dependency-path: kube/go.sum

- name: No Go workspace
run: test ! -f go.work

- name: Test dispatch
working-directory: kube
run: go test ./internal/... -skip '^TestChildUsesRuntimePaths$'

- name: Test containerd runtime paths
working-directory: kube
run: |
go test -c -o /tmp/containerd.test ./internal/containerd/
sudo /tmp/containerd.test -test.count=1 -test.v -test.run '^TestChildUsesRuntimePaths$'

- name: Aux build dependencies
run: sudo TARGETARCH=amd64 ./scripts/install-embed-build-deps

- name: Build linux/amd64
working-directory: kube
run: bash scripts/build.sh

- name: Extract and exec
working-directory: kube
run: bash scripts/smoke.sh

build-arm64:
name: Build linux/arm64
runs-on: ubuntu-24.04-arm
needs: [lint]
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3

- name: Set up Go
uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
with:
go-version: ${{ env.GO_VERSION }}
cache-dependency-path: kube/go.sum

- name: No Go workspace
run: test ! -f go.work

- name: Aux build dependencies
run: sudo TARGETARCH=arm64 ./scripts/install-embed-build-deps

- name: Build linux/arm64
working-directory: kube
env:
ARCH: arm64
run: bash scripts/build.sh
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ on:
- 'sbom.cdx.json'
- 'sbom.spdx.json'
- 'licensegen/**'
- '!kube/**'
- '!.github/workflows/ci-kube.yml'
pull_request:
branches: [ main, develop, edgelet/** ]
paths:
Expand All @@ -43,12 +45,14 @@ on:
- 'sbom.cdx.json'
- 'sbom.spdx.json'
- 'licensegen/**'
- '!kube/**'
- '!.github/workflows/ci-kube.yml'
workflow_dispatch:

permissions: read-all

env:
GO_VERSION: '1.26.10'
GO_VERSION: '1.26.11'

jobs:
lint:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
permissions: read-all

env:
GO_VERSION: '1.26.10'
GO_VERSION: '1.26.11'

jobs:
analyze:
Expand Down
171 changes: 171 additions & 0 deletions .github/workflows/conformance-kube.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,171 @@
name: edgelet-kube conformance

on:
workflow_dispatch:
push:
tags:
- 'edgelet-kube-v*\+edgelet*'

permissions: read-all

env:
GO_VERSION: '1.26.11'
GOWORK: 'off'

jobs:
artifacts:
name: linux/amd64 release artifacts
runs-on: ubuntu-latest
timeout-minutes: 90
permissions:
contents: read
actions: write
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3

- uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
with:
go-version: ${{ env.GO_VERSION }}
cache-dependency-path: kube/go.sum

- name: No Go workspace
run: test ! -f go.work

- name: Free disk
run: |
sudo rm -rf \
/usr/local/lib/android \
/usr/share/dotnet \
/opt/hostedtoolcache/CodeQL \
/usr/share/swift \
/usr/local/.ghcup || true
df -h

- name: Aux build dependencies
run: sudo TARGETARCH=amd64 ./scripts/install-embed-build-deps

- name: Build thin binary
working-directory: kube
run: bash scripts/build.sh

- name: Reported version is the Kubernetes patch
working-directory: kube
env:
REF_NAME: ${{ github.ref_name }}
run: |
set -euo pipefail
pin=$(awk '$1 == "kubernetes" { print $2; exit }' scripts/airgap/pins.txt)
test -n "$pin"
test -f build/edgelet-kube-server
info=$(go version -m build/edgelet-kube-server)
# Both component-base and client-go are stamped on one ldflags line.
count=$(printf '%s\n' "$info" | grep -o -F "version.gitVersion=${pin}" | wc -l | tr -d ' ' || true)
test "$count" -ge 2
if printf '%s\n' "$info" | grep -F -q "gitVersion=${REF_NAME}"; then
echo "git tag ${REF_NAME} was stamped as gitVersion" >&2
exit 1
fi

- name: Stage thin binary
run: |
set -euo pipefail
test -f kube/build/edgelet-kube
mkdir -p dist
install -m 0755 kube/build/edgelet-kube dist/edgelet-kube-linux-amd64

- name: Start containerd
run: |
set -euo pipefail
if ! command -v ctr >/dev/null 2>&1; then
sudo apt-get update
sudo apt-get install -y --no-install-recommends containerd
fi
if ! sudo ctr version >/dev/null 2>&1; then
sudo systemctl enable --now containerd
fi
sudo ctr version

- name: Package airgap archive
working-directory: kube
env:
ARCH: amd64
run: |
set -euo pipefail
sudo env \
PATH="$PATH" \
ARCH="$ARCH" \
GOWORK=off \
GOCACHE="$(go env GOCACHE)" \
GOMODCACHE="$(go env GOMODCACHE)" \
GOPATH="$(go env GOPATH)" \
bash scripts/package-airgap
test -f build/edgelet-kube-airgap-images-amd64.tar.zst

- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: edgelet-kube-linux-amd64
path: dist/edgelet-kube-linux-amd64
if-no-files-found: error

- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: edgelet-kube-airgap-images-amd64.tar.zst
path: kube/build/edgelet-kube-airgap-images-amd64.tar.zst
if-no-files-found: error
compression-level: 0

conformance:
name: certified-conformance
runs-on: ubuntu-latest
needs: [artifacts]
timeout-minutes: 240
permissions:
contents: read
actions: write
env:
CONFORMANCE_TIMEOUT_MINUTES: "240"
SONOBUOY_MODE: certified-conformance
RELEASE_NAME: ${{ github.ref_name }}
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3

- uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
with:
go-version: ${{ env.GO_VERSION }}
cache-dependency-path: kube/go.sum

- name: No Go workspace
run: test ! -f go.work

- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
pattern: edgelet-kube-*
merge-multiple: true
path: dist

- name: Free disk
run: |
sudo rm -rf \
/usr/local/lib/android \
/usr/share/dotnet \
/opt/hostedtoolcache/CodeQL \
/usr/share/swift \
/usr/local/.ghcup || true
df -h
test -f dist/edgelet-kube-linux-amd64
test -f dist/edgelet-kube-airgap-images-amd64.tar.zst

- name: Run certified-conformance
env:
CONFORMANCE_RESULTS: ${{ github.workspace }}/sonobuoy-results.tar.gz
run: |
bash kube/scripts/conformance.sh \
--binary="${GITHUB_WORKSPACE}/dist/edgelet-kube-linux-amd64" \
--images="${GITHUB_WORKSPACE}/dist/edgelet-kube-airgap-images-amd64.tar.zst"

- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
if: always()
with:
name: sonobuoy-results
path: sonobuoy-results.tar.gz
if-no-files-found: ignore
2 changes: 1 addition & 1 deletion .github/workflows/govulncheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
permissions: read-all

env:
GO_VERSION: '1.26.10'
GO_VERSION: '1.26.11'

jobs:
govulncheck:
Expand Down
Loading
Loading