Skip to content

Expose CRI image config - #13709

Closed
phillebaba wants to merge 1 commit into
containerd:mainfrom
phillebaba:feature/cri-image-config
Closed

phillebaba wants to merge 1 commit into
containerd:mainfrom
phillebaba:feature/cri-image-config

Conversation

@phillebaba

Copy link
Copy Markdown
Contributor

Back in Containerd 1.7 the mirror configuration was included as part of the verbose config from the CRI info endpoint. This was later removed in 2.0 due to the re-architecture of the plugin system which made it impossible to get hold of the loaded configuration. It seems like we are able to access this configuration again from the CRI service making it possible to expose once again. This change adds this configuration back to the output.

The reason this is useful, is because it is otherwise very difficult to determine what configuration has actually been loaded at runtime. Due to different schema versions and import paths actually ensuring that mirroring is enabled can be very challenging.

Fixes #10780

Copilot AI review requested due to automatic review settings July 2, 2026 08:24
@github-project-automation github-project-automation Bot moved this to Needs Triage in Pull Request Review Jul 2, 2026
@phillebaba
phillebaba force-pushed the feature/cri-image-config branch from ee96f57 to 1f4cd55 Compare July 2, 2026 08:24
@phillebaba
phillebaba force-pushed the feature/cri-image-config branch from 1f4cd55 to 3e2abe4 Compare July 2, 2026 08:26

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Re-introduces exposure of the CRI image configuration via the CRI Runtime Status verbose Info map, to make it possible to verify which registry/mirroring config was actually loaded at runtime (fixing #10780).

Changes:

  • Marshal c.ImageService.Config() into JSON and return it as resp.Info["imageconfig"] when StatusRequest.Verbose is true.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread internal/cri/server/status.go Resolved
Comment thread internal/cri/server/status.go Resolved
Copilot AI review requested due to automatic review settings July 2, 2026 08:27

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

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

Comment thread internal/cri/server/status.go Resolved
Comment thread internal/cri/server/status.go Resolved
@kubernetes-prow kubernetes-prow Bot added size/XXL and removed size/XS labels Jul 2, 2026
@phillebaba
phillebaba force-pushed the feature/cri-image-config branch from 88fe1a4 to 22d7501 Compare July 2, 2026 09:29
@kubernetes-prow kubernetes-prow Bot added size/XS and removed size/XXL labels Jul 2, 2026
@phillebaba
phillebaba force-pushed the feature/cri-image-config branch from 22d7501 to a8a8969 Compare July 2, 2026 09:30
Copilot AI review requested due to automatic review settings July 2, 2026 16:25
@phillebaba
phillebaba force-pushed the feature/cri-image-config branch from a8a8969 to 05ae716 Compare July 2, 2026 16:25

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 3 comments.

Comment thread internal/cri/server/status.go Resolved
Comment thread internal/cri/server/status.go Resolved
Comment thread internal/cri/server/status.go Resolved
@phillebaba
phillebaba force-pushed the feature/cri-image-config branch from 05ae716 to b3af0f3 Compare July 23, 2026 12:45
Signed-off-by: Philip Laine <[email protected]>
@phillebaba

Copy link
Copy Markdown
Contributor Author

Closing in favor of #13940 after discussing alternative implementations during the last community meeting.

@phillebaba phillebaba closed this Aug 11, 2026
@github-project-automation github-project-automation Bot moved this from Needs Triage to Done in Pull Request Review Aug 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Export image config through GRPC service

2 participants