Documentation
¶
Overview ¶
Package registryauth installs the stock ACR credential provider when explicitly requested.
Index ¶
Constants ¶
View Source
const ( ConfigKey = "node-auth.yaml" ProviderName = "acr-credential-provider" ProviderBinary = "/unbounded/bin/acr-credential-provider" ExternalMode = "external" IdentityBindingMode = "aks-identity-binding" FlexNodeLabel = "kubernetes.azure.com/nodepool-type" FlexNodeValue = "FlexNodes" IdentityRoleName = "gantry-acr-pull" )
Variables ¶
View Source
var ErrKubeletNotRunning = errors.New("no running kubelet found; waiting before configuring node authentication")
Functions ¶
func EnsureUpstream ¶
EnsureUpstream merges only the explicitly selected registry during attachment. It preserves unrelated runtime fields, registry entries, and YAML comments.
func RunNode ¶
func RunNode(ctx context.Context, opts NodeOptions) error
RunNode installs configuration and upstream's executable. It never handles credentials.
func RunningKubeletArgs ¶
Types ¶
type Config ¶
type Config struct {
Mode string `json:"mode,omitempty"`
Registry string `json:"registry,omitempty"`
ClientID string `json:"clientID,omitempty"`
TenantID string `json:"tenantID,omitempty"`
SNIName string `json:"sniName,omitempty"`
ProxyAddress string `json:"proxyAddress,omitempty"`
Audience string `json:"audience,omitempty"`
CACert string `json:"caCert,omitempty"`
}
Config contains installation policy, never access tokens or client secrets. An absent policy leaves customer authentication entirely alone.
func (Config) AzureConfig ¶
func (Config) ProviderConfig ¶
ProviderConfig configures upstream's identity-binding mode, not its IMDS mode.
Click to show internal directories.
Click to hide internal directories.