Bump Kubernetes dependencies to v0.29.15 - #211
Merged
Merged
Conversation
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.
mrproliu
approved these changes
Aug 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
The adapter's Kubernetes stack is pinned at
v0.27.2.k8s.io/apimachineryat 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/netversions 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.2→v0.29.15(withk8s.io/apiandk8s.io/client-gofollowing as indirect deps)sigs.k8s.io/custom-metrics-apiserver:v1.27.0→v1.29.0, to stay on the matching minor lineadapter/main.go: adapt to the OpenAPI config splitOn the
main.gochangecustom-metrics-apiserverv1.29.0 splits the OpenAPI v2 and v3 configuration into two separateAdapterBasefields:The existing code assigned the result of
DefaultOpenAPIV3Configto the singleOpenAPIConfigfield, which no longer type-checks. Both fields are now populated from their matching constructor, keeping the same title and version on each — mirroring howAdapterBase.defaultOpenAPIConfig/defaultOpenAPIV3Configdo it upstream.Verification
go build ./...— cleango vet ./...— cleango test ./...— no test files in the adapter module, so nothing to run/cc @kezhenxu94