Skip to content

[BUG] Gateway HPA samples in config/samples fail CRD validation #327

Closed

Description

@edenreich

Summary

Two Gateway samples in config/samples fail CRD validation, so kubectl apply refuses them:

  • core_v1alpha1_gateway_hpa.yaml: unknown fields spec.hpa.minReplicas, spec.hpa.maxReplicas, spec.hpa.customMetrics.
  • core_v1alpha1_gateway_simple_hpa.yaml: unknown fields spec.hpa.minReplicas, spec.hpa.maxReplicas, spec.hpa.targetCPUUtilizationPercentage, and spec.providers[].type and spec.providers[].config, which the provider spec replaced with enabled and env.

api/v1alpha1/examples_test.go strict-decodes every CR under examples/ but not config/samples/, so nothing catches the drift.

Found while verifying the examples for #325 on a k3d cluster.

Steps to Reproduce

  1. Install the CRDs from manifests/crds.yaml.
  2. Run kubectl apply --dry-run=server -n default -f config/samples/core_v1alpha1_gateway_simple_hpa.yaml.

Expected Behavior

Every sample applies against the CRDs of the same commit.

Actual Behavior

Gateway in version "v1alpha1" cannot be handled as a Gateway: strict decoding error: unknown field "spec.hpa.maxReplicas", unknown field "spec.hpa.minReplicas", ...

The other samples (agent, gpu, mcp and the three orchestrator samples) pass. A fix updates both Gateway samples to the current HPASpec and provider shape and extends TestExamplesUseKnownFields to config/samples/*.yaml.

Activity

  1. added
    bug
    on Nov 8, 2026
  2. added theissue type on Nov 8, 2026
  3. moved this to Todo in 2026on Nov 8, 2026
  4. moved this from Todo to In progress in 2026on Nov 8, 2026
  5. moved this from In progress to QA in 2026on Nov 8, 2026
  6. inference-gateway-releaser commented on Nov 8, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.33.0 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

  7. moved this from QA to Done in 2026on Nov 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugreleased

    Type

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions