Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Yongxuanzhang committed Nov 9, 2022
1 parent 22f37bd commit 4333fd1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/trustedresources/verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ func getVerifiers(ctx context.Context, k8s kubernetes.Interface, vpl *v1alpha1.V
if vpl != nil && len(vpl.Items) != 0 {
for _, i := range vpl.Items {
for _, ra := range i.Spec.ResourceAuthorities {
// TODO(#5527): Use v.Pattern t filter the resource url form config source by https://github.com/tektoncd/pipeline/pull/5397
// TODO(#5527): Use v.Pattern to filter the resource url form config source by https://github.com/tektoncd/pipeline/pull/5397
for _, a := range ra.AuthoritityList {
if len(a.Key.Data) != 0 {
for _, d := range a.Key.Data {
Expand Down Expand Up @@ -253,8 +253,8 @@ func getVerifiers(ctx context.Context, k8s kubernetes.Interface, vpl *v1alpha1.V
return verifiers, nil
}

// verifierForKeyRef parses the given keyRef, loads the key and returns an appropriate
// verifier using the provided hash algorithm
// verifierForKeyRef parses the given keyRef, loads the keys and returns
// verifiers and public keys data using the provided hash algorithm
// TODO(#5527): consider wrap verifiers to resolver so the same verifiers are used for the same reconcile event
func verifierForKeyRef(ctx context.Context, keyRef string, hashAlgorithm crypto.Hash, k8s kubernetes.Interface) ([]signature.Verifier, []string, error) {
var raw []byte
Expand Down

0 comments on commit 4333fd1

Please sign in to comment.