feat: add ImagePullIdentityProfile for identity binding-based image pull #7596
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.
What type of PR is this?
/kind feature
This PR adds support for identity binding-based image pull authentication from Azure Container Registry (ACR), implementing KEP-4412 projected service account tokens for kubelet image credential providers.
To support identity binding-based image pull feature changes in AgentBaker, we plan to implement it in three parts:
What this PR does / why we need it:
Data Model Changes
ImagePullIdentityProfilestruct toSecurityProfilecontaining:Enabled: Boolean flag to enable/disable the featureDefaultClientID: Cluster-wide default managed identity client IDDefaultTenantID: Cluster-wide default managed identity tenant IDLocalAuthoritySNI: SNI endpoint for Identity Bindings Local AuthorityHelper Functions
GetImagePullIdentity()method to retrieve image pull identity configurationIsImagePullIdentityBindingEnabled()method to check if feature is enabledvariables.go:getImagePullIdentityDefaultClientID()getImagePullIdentityDefaultTenantID()getImagePullIdentityLocalAuthoritySNI()Variable Mappings
imagePullIdentityBindingEnabledimagePullIdentityDefaultClientIDimagePullIdentityDefaultTenantIDidentityBindingsLocalAuthoritySNIWhich issue(s) this PR fixes:
Fixes #
Requirements:
Special notes for your reviewer:
Release note: