Skip to content

Commit 74f6e05

Browse files
committed
fix: GetKeychains always returns at least 1 keychain
GetDescriptor iterate over keychains returned by GetKeychains, so if GetKeychains returns 0 keychain, GetDescriptor will return a nil descriptor
1 parent e96989a commit 74f6e05

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/registry/keychain.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ func GetKeychains(repositoryName string, pullSecrets []corev1.Secret) ([]authn.K
5050
})
5151
}
5252

53+
keychains = append(keychains, authn.DefaultKeychain)
54+
5355
return keychains, nil
5456
}
5557

0 commit comments

Comments
 (0)