Repository navigation
refactor(config)!: spell networkCIDR one way in service placement - #13636
Merged
Merged
Conversation
The gateway spells its Docker subnet `networkCIDR`, but a placed model service spelled the same value `networkCidr`, from serde's camelCase on ServicePlacement. #13080 lists this as shape change 5. `spec.services.<name>.placement.networkCIDR` replaces `networkCidr`, matching the gateway, the guides, and most examples. There is no alias, so `networkCidr` is now an unknown field. The SDK compiles placement into the managed service spec's own `network_cidr`, so provider inputs and provider state don't change. Saved deployment intent holds the authored document, so intent saved with `networkCidr` no longer loads; v1 does not carry earlier formats. Update the three examples, the onboarding label, and the tests that author a placement, and regenerate the schema and the reference. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
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.
Failure
The gateway spells its Docker subnet
networkCIDR, but a placed model service spelled the same valuenetworkCidr:ServicePlacementtook serde's camelCase. Authors had to remember which object used which spelling. #13080 lists this as shape change 5.Decision
spec.services.<name>.placement.networkCIDRreplacesnetworkCidr, matching the gateway, the guides, and most examples. There is no alias, sonetworkCidris now an unknown field.flowchart LR Y["Authored YAML<br/>gateway.networkCIDR<br/>services.NAME.placement.networkCIDR"] --> P["Parser and JSON Schema<br/>networkCidr is unknown"] P --> D["Document"] D --> I["Saved intent<br/>old networkCidr no longer loads"] D --> C["compile"] --> S["Managed service spec<br/>network_cidr, unchanged"] S --> R["Provider input and state<br/>unchanged"]network_cidr.networkCidrno longer loads. v1 does not carry earlier formats.Validation
config_schema::service_placement_spells_network_cidr_like_the_managed_gatewayfailed before the rename, becauseServicePlacementhad onlynetworkCidr. It checks that the parser and the JSON Schema both acceptnetworkCIDRand rejectnetworkCidr, and that a parsed document writesnetworkCIDRback.networkCidrfails to deserialize:unknown field `networkCidr`, expected `engine` or `networkCIDR`.cargo ci --fullpassed on v1be5f3800c(linux_arm64): 1,610 unit and 156 lifecycle tests, within budget.Part of #13080.