Skip to content

Bump Kubernetes dependencies to v0.29.15 - #211

Merged
kezhenxu94 merged 1 commit into
apache:masterfrom
kezhenxu94:bump-k8s-0.29
Aug 10, 2026
Merged

Bump Kubernetes dependencies to v0.29.15#211
kezhenxu94 merged 1 commit into
apache:masterfrom
kezhenxu94:bump-k8s-0.29

Conversation

@kezhenxu94

Copy link
Copy Markdown
Member

Motivation

The adapter's Kubernetes stack is pinned at v0.27.2. k8s.io/apimachinery at that version is flagged for CVE-2023-44487 (HTTP/2 Rapid Reset) by image scanners, so downstream images built from the adapter keep failing security scans.

The underlying vulnerability is already mitigated by the Go toolchain and golang.org/x/net versions the image ships — the finding is driven by the module version string rather than by reachable vulnerable code. Bumping the dependency is the practical way to clear it.

Changes

  • k8s.io/apimachinery, k8s.io/apiserver, k8s.io/component-base, k8s.io/metrics: v0.27.2v0.29.15 (with k8s.io/api and k8s.io/client-go following as indirect deps)
  • sigs.k8s.io/custom-metrics-apiserver: v1.27.0v1.29.0, to stay on the matching minor line
  • adapter/main.go: adapt to the OpenAPI config split

On the main.go change

custom-metrics-apiserver v1.29.0 splits the OpenAPI v2 and v3 configuration into two separate AdapterBase fields:

OpenAPIConfig   *openapicommon.Config
OpenAPIV3Config *openapicommon.OpenAPIV3Config

The existing code assigned the result of DefaultOpenAPIV3Config to the single OpenAPIConfig field, which no longer type-checks. Both fields are now populated from their matching constructor, keeping the same title and version on each — mirroring how AdapterBase.defaultOpenAPIConfig / defaultOpenAPIV3Config do it upstream.

Verification

  • go build ./... — clean
  • go vet ./... — clean
  • go test ./... — no test files in the adapter module, so nothing to run

/cc @kezhenxu94

Moves the adapter's Kubernetes stack from v0.27.2 to v0.29.15 and
custom-metrics-apiserver from v1.27.0 to v1.29.0.

k8s.io/apimachinery v0.27.2 is flagged for CVE-2023-44487 (HTTP/2 Rapid
Reset) by image scanners, which keeps the adapter image failing security
scans even though the underlying issue is mitigated by the Go toolchain
and golang.org/x/net versions the image already ships.

custom-metrics-apiserver v1.29.0 splits the OpenAPI v2 and v3 configs
into separate AdapterBase fields, so main.go now populates OpenAPIConfig
via DefaultOpenAPIConfig and OpenAPIV3Config via DefaultOpenAPIV3Config.
Previously a v3 config was assigned to the single OpenAPIConfig field.
@kezhenxu94
kezhenxu94 merged commit 3e97d8a into apache:master Aug 10, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants