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 {
|
if err != nil {
|
||||||
ticker.Stop()
|
ticker.Stop()
|
||||||
|
|
||||||
updateErr := issuerconfig.CreateOrUpdateCredentialIssuerConfig(
|
if updateErr := issuerconfig.CreateOrUpdateCredentialIssuerConfig(
|
||||||
ctx,
|
ctx,
|
||||||
serverInstallationNamespace,
|
serverInstallationNamespace,
|
||||||
pinnipedClient,
|
pinnipedClient,
|
||||||
@ -212,8 +212,9 @@ func getClusterCASigner(ctx context.Context, serverInstallationNamespace string)
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
)
|
); updateErr != nil {
|
||||||
klog.Errorf("error performing create or update on CredentialIssuerConfig to add strategy error: %w", updateErr)
|
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)
|
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 {
|
if updateErr != nil {
|
||||||
|
//nolint:goerr113
|
||||||
return nil, nil, fmt.Errorf("error performing create or update on CredentialIssuerConfig to add strategy success: %w", updateErr)
|
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
|
package library
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
Loading…
Reference in New Issue
Block a user