Repository navigation
fix(samples): make the Gateway and MCP samples pass CRD validation - #329
Merged
Merged
Conversation
The two Gateway HPA samples used fields the API no longer has, and kustomization.yaml listed a core_v1alpha1_gateway.yaml that did not exist, so kubectl kustomize config/samples failed. One core_v1alpha1_gateway.yaml with the current hpa.config and provider env shape replaces both. The MCP sample set tls with enabled false but no secretName, which the CRD requires. Leaving tls out already means no TLS. TestExamplesUseKnownFields now strict-decodes config/samples as well, and GPU manifests too.
…tings The MCP sample keeps tls with enabled false and gains the secretName the CRD requires even when TLS is off. The Gateway sample keeps what the old HPA samples showed in the current hpa.config shape: a memory target and scale-up and scale-down stabilization windows. The custom Pods metric stays as a commented block, since the HPA never scales down without a metrics adapter serving it.
inference-gateway-releaser Bot
added a commit
that referenced
this pull request
Nov 8, 2026
## [0.33.0](v0.32.0...v0.33.0) (2026-11-08) ### ✨ Features * **gateway:** tune MCP health polling with spec.mcp.healthCheck ([#328](#328)) ([ff0867c](ff0867c)) * **orchestrator:** give spec.mcp.servers names and headers in the pod's mcp.yaml ([#324](#324)) ([56f4ff8](56f4ff8)), closes [#321](#321) * **orchestrator:** pass through binding Service annotations and labels ([#320](#320)) ([d543db8](d543db8)) ### ♻️ Improvements * **orchestrator:** export the status contract from api/v1alpha1 ([#330](#330)) ([4b5d854](4b5d854)) ### 🐛 Bug Fixes * **examples:** serve the example MCP servers over stateless MCP 2026-07-28 ([#325](#325)) ([6d34978](6d34978)), closes [#323](#323) * **samples:** make the Gateway and MCP samples pass CRD validation ([#329](#329)) ([e2e5d2a](e2e5d2a)) ### 👷 CI * **deps:** bump the gomod group with 4 updates ([#319](#319)) ([67f1bde](67f1bde))
Contributor
|
🎉 This PR is included in version 0.33.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
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.
Summary
The Gateway samples in
config/samplesfailed CRD validation, andkubectl kustomize config/samplesfailed outright becausekustomization.yamllisted acore_v1alpha1_gateway.yamlthat did not exist.core_v1alpha1_gateway_hpa.yamlandcore_v1alpha1_gateway_simple_hpa.yamlare replaced by onecore_v1alpha1_gateway.yaml, the file the kustomization already lists. It keeps what the HPA samples showed in the currenthpa.configshape: CPU and memory targets,minReplicasandmaxReplicas, and scale-up and scale-down stabilization windows. Providers use the currentenvshape.http_requests_per_secondPods metric stays as a commented block. It needs a metrics adapter such as prometheus-adapter, and without one the HPA never scales down.tlsblock withenabled: falseand gains thesecretNamethe CRD requires even when TLS is off. Before, the API server refused the sample.TestExamplesUseKnownFieldsnow strict-decodesconfig/samples/*.yamlas well asexamples/, and decodes GPU manifests too.Closes #327
Verification
task testpasses. With the oldcore_v1alpha1_gateway_simple_hpa.yamlput back, the test fails withunknown field "maxReplicas".manifests/crds.yaml,kubectl kustomize config/samples | kubectl apply --dry-run=server -f -accepts all seven samples, and every manifest underexamples/also passes a server dry run.The strict decode catches unknown fields but not a missing required field such as the MCP sample's
secretName. Only the server dry run caught that one.Cross-repo impact