Fix linter errors
This commit is contained in:
parent
6e59596285
commit
4306599396
@ -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)
|
||||
}
|
||||
|
||||
|
@ -1,3 +1,8 @@
|
||||
/*
|
||||
Copyright 2020 VMware, Inc.
|
||||
SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
package library
|
||||
|
||||
import (
|
||||
|
Loading…
Reference in New Issue
Block a user