Skip to content

Commit

Permalink
chore: added godoc
Browse files Browse the repository at this point in the history
Signed-off-by: Bruno Bressi <[email protected]>
  • Loading branch information
puffitos committed Feb 3, 2024
1 parent 04d1955 commit cbcb14c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions webhook/cosignwebhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ func (csh *CosignServerHandler) Serve(w http.ResponseWriter, r *http.Request) {
csh.recordNoVerification(pod)
}

// newKeychainForPod builds a new Keychain for the pod
func newKeychainForPod(ctx context.Context, pod *corev1.Pod) (authn.Keychain, error) {
imagePullSecrets := make([]string, 0, len(pod.Spec.ImagePullSecrets))
for _, s := range pod.Spec.ImagePullSecrets {
Expand Down

0 comments on commit cbcb14c

Please sign in to comment.