From b2b62ceec2f33732cb198fd911edc2bc68316a58 Mon Sep 17 00:00:00 2001 From: "huish@microsoft.com" Date: Wed, 25 Oct 2023 01:17:38 +0000 Subject: [PATCH] update func name --- pkg/verifier/notation/notation.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/verifier/notation/notation.go b/pkg/verifier/notation/notation.go index e668517e7..16a232980 100644 --- a/pkg/verifier/notation/notation.go +++ b/pkg/verifier/notation/notation.go @@ -187,7 +187,7 @@ func parseVerifierConfig(verifierConfig config.VerifierConfig, namespace string) // append namespace to uniquely identify the certstore if len(conf.VerificationCertStores) > 0 { logger.GetLogger(context.Background(), logOpt).Debugf("VerificationCertStores is not empty, will append namespace %v to certificate store if resource does not already contain a namespace", namespace) - conf.VerificationCertStores, err = appendNamespaceToCertStore(conf.VerificationCertStores, namespace) + conf.VerificationCertStores, err = prependNamespaceToCertStore(conf.VerificationCertStores, namespace) if err != nil { return nil, err } @@ -204,7 +204,7 @@ func (v *notationPluginVerifier) GetNestedReferences() []string { } // append namespace to certStore so they are uniquely identifiable -func appendNamespaceToCertStore(verificationCertStore map[string][]string, namespace string) (map[string][]string, error) { +func prependNamespaceToCertStore(verificationCertStore map[string][]string, namespace string) (map[string][]string, error) { if namespace == "" { return nil, re.ErrorCodeEnvNotSet.WithComponentType(re.Verifier).WithDetail("failure to parse VerificationCertStores, namespace for VerificationCertStores must be provided") }