refactor: cleanup GetArtifactRegistryCredentials error handling
Update fluxcd/pkg/auth to v0.18.0 and simplify error handling for GetArtifactRegistryCredentials() following the improvements made in the library. Similar to fluxcd/image-reflector-controller#786, this removes unnecessary nil checks as the function now returns errors directly for unsupported providers. - Replace authentication code in push_artifact.go with loginWithProvider() - Remove unnecessary authenticator nil check in oci.go - Remove unused imports (errors, auth packages) Signed-off-by: cappyzawa <cappyzawa@gmail.com>
This commit is contained in:
2
go.mod
2
go.mod
@@ -19,7 +19,7 @@ require (
|
||||
github.com/fluxcd/notification-controller/api v1.6.0
|
||||
github.com/fluxcd/pkg/apis/event v0.17.0
|
||||
github.com/fluxcd/pkg/apis/meta v1.12.0
|
||||
github.com/fluxcd/pkg/auth v0.17.0
|
||||
github.com/fluxcd/pkg/auth v0.18.0
|
||||
github.com/fluxcd/pkg/chartutil v1.3.0
|
||||
github.com/fluxcd/pkg/envsubst v1.4.0
|
||||
github.com/fluxcd/pkg/git v0.32.0
|
||||
|
||||
Reference in New Issue
Block a user