diff --git a/internal/server/server.go b/internal/server/server.go index b834625f..3807a4c6 100644 --- a/internal/server/server.go +++ b/internal/server/server.go @@ -197,7 +197,7 @@ func getClusterCASigner(ctx context.Context, serverInstallationNamespace string) if err != nil { ticker.Stop() - updateErr := issuerconfig.CreateOrUpdateCredentialIssuerConfig( + if updateErr := issuerconfig.CreateOrUpdateCredentialIssuerConfig( ctx, serverInstallationNamespace, pinnipedClient, @@ -212,8 +212,9 @@ func getClusterCASigner(ctx context.Context, serverInstallationNamespace string) }, } }, - ) - klog.Errorf("error performing create or update on CredentialIssuerConfig to add strategy error: %w", updateErr) + ); updateErr != nil { + klog.Errorf("error performing create or update on CredentialIssuerConfig to add strategy error: %s", updateErr.Error()) + } return nil, nil, fmt.Errorf("could not load cluster signing CA: %w", err) } @@ -235,6 +236,7 @@ func getClusterCASigner(ctx context.Context, serverInstallationNamespace string) }, ) if updateErr != nil { + //nolint:goerr113 return nil, nil, fmt.Errorf("error performing create or update on CredentialIssuerConfig to add strategy success: %w", updateErr) } diff --git a/test/library/cluster_capabilities.go b/test/library/cluster_capabilities.go index 58418b9a..b606423f 100644 --- a/test/library/cluster_capabilities.go +++ b/test/library/cluster_capabilities.go @@ -1,3 +1,8 @@ +/* +Copyright 2020 VMware, Inc. +SPDX-License-Identifier: Apache-2.0 +*/ + package library import (