Skip to content

Commit 4f8a5a3

Browse files
dilyevskyclaude
andcommitted
[apiserver] fix keyring.Add call for k8s v1.34
credentialprovider.BasicDockerKeyring.Add now requires a *CredentialSource as the first argument. Pass nil since these credentials don't originate from a k8s Secret. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 46145d7 commit 4f8a5a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/apiserver/ingest/edgefunction.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ func (w *worker) pullOCIImage(
472472
return nil, fmt.Errorf("failed to parse dockerconfigjson: %w", err)
473473
}
474474
keyring := &credentialprovider.BasicDockerKeyring{}
475-
keyring.Add(dockerConfig.Auths)
475+
keyring.Add(nil, dockerConfig.Auths)
476476

477477
credsFunc = func(_ context.Context, _ string) (auth.Credential, error) {
478478
authConfs, ok := keyring.Lookup(ociRef.Repo)

0 commit comments

Comments
 (0)