Skip to content

Support hub IDs in versioned server config#92

Merged
ptone merged 1 commit intoGoogleCloudPlatform:mainfrom
mfreeman451:fix/versioned-server-hub-id
Apr 11, 2026
Merged

Support hub IDs in versioned server config#92
ptone merged 1 commit intoGoogleCloudPlatform:mainfrom
mfreeman451:fix/versioned-server-hub-id

Conversation

@mfreeman451
Copy link
Copy Markdown
Contributor

@mfreeman451 mfreeman451 commented Apr 8, 2026

Summary

  • add hub_id to V1ServerHubConfig
  • preserve it when converting between versioned settings and GlobalConfig
  • document it in the settings schema and cover it with focused config tests

Problem

Versioned settings.yaml currently drops server.hub.hub_id, so deployments that rely on versioned server config cannot pin a stable Hub ID through that path.

Validation

  • go test ./pkg/config -run 'TestConvertV1ServerToGlobalConfig_Basic|TestConvertGlobalToV1ServerConfig_RoundTrip|TestLoadGlobalConfig_FromSettingsYAML'

Refs #91

Copy link
Copy Markdown
Contributor Author

@mfreeman451 mfreeman451 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mfreeman451 mfreeman451 marked this pull request as ready for review April 8, 2026 21:24
@mfreeman451 mfreeman451 force-pushed the fix/versioned-server-hub-id branch from 9ff2ca1 to 8280c53 Compare April 11, 2026 05:15
@ptone ptone merged commit b056e62 into GoogleCloudPlatform:main Apr 11, 2026
1 check passed
scion-gteam bot pushed a commit to ptone/scion that referenced this pull request Apr 12, 2026
  The V1 settings layer was missing the hub_id field, so deployments                                                                                                
  using versioned settings.yaml could not pin a stable Hub ID through                                                                                               
  that path. Add hub_id to V1ServerHubConfig and preserve it across                                                                                                 
  V1 <-> GlobalConfig conversions.
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