Skip to content

chore: remove OSImageConfig and PIR support#8650

Open
cameronmeissner wants to merge 1 commit into
mainfrom
cameissner/remove-osimageconfig
Open

chore: remove OSImageConfig and PIR support#8650
cameronmeissner wants to merge 1 commit into
mainfrom
cameissner/remove-osimageconfig

Conversation

@cameronmeissner
Copy link
Copy Markdown
Contributor

@cameronmeissner cameronmeissner commented Jun 5, 2026

What this PR does / why we need it:

chore: remove OSImageConfig and PIR support since it's no longer used anywhere, reviving: #6709

Which issue(s) this PR fixes:

Fixes #

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR removes the legacy OSImageConfig-based image selection path (and associated references) from AgentBaker’s datamodel and bootstrapping flow, intending to rely solely on SIG image configuration.

Changes:

  • Removed OSImageConfig from NodeBootstrapping and removed OS image config wiring in GetNodeBootstrapping.
  • Removed OSImageConfig/AzureOSImageConfig from AzureEnvironmentSpecConfig and updated unit/e2e test configs accordingly.
  • Updated unit tests to stop asserting OSImageConfig-based values.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
pkg/agent/datamodel/types.go Drops OSImageConfig from NodeBootstrapping.
pkg/agent/datamodel/azenvtypes.go Removes OSImageConfig from AzureEnvironmentSpecConfig and deletes AzureOSImageConfig type.
pkg/agent/bakerapi.go Removes the OSImageConfig (cloud→distro) fallback; now requires SIG image config.
pkg/agent/bakerapi_test.go Removes OSImageConfig assertions and the “unknown cloud” test; keeps SIG assertions.
e2e/node_config.go Removes OSImageConfig initialization from e2e node bootstrapping configuration templates.

Comment on lines 6 to 11
// AzureEnvironmentSpecConfig is the overall configuration differences in different cloud environments.
type AzureEnvironmentSpecConfig struct {
CloudName string `json:"cloudName,omitempty"`
KubernetesSpecConfig KubernetesSpecConfig `json:"kubernetesSpecConfig,omitempty"`
EndpointConfig AzureEndpointConfig `json:"endpointConfig,omitempty"`
OSImageConfig map[Distro]AzureOSImageConfig `json:"osImageConfig,omitempty"`
CloudName string `json:"cloudName,omitempty"`
KubernetesSpecConfig KubernetesSpecConfig `json:"kubernetesSpecConfig,omitempty"`
EndpointConfig AzureEndpointConfig `json:"endpointConfig,omitempty"`
}
Expect(err).To(HaveOccurred())
})

It("should return an error if distro is neither found in PIR nor found in SIG", func() {
@cameronmeissner
Copy link
Copy Markdown
Contributor Author

blocked until all bootstrapper references of NodeBootstrapping.OSImageConfig are removed independently

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