Skip to content

Commit

Permalink
Fixup: return nil when registry is not ECR (#979)
Browse files Browse the repository at this point in the history
  • Loading branch information
d8660091 authored Sep 12, 2023
1 parent c6330bc commit 25c90c8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/registry/ecr_cred_injector.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ func (a *ECRCredInjector) Refresh(ctx context.Context) error {

if !IsECRRegistry(registry) {
a.log.Info("defaultRegistry is not ECR registry, skip injecting credential to docker config")
return nil
}
// update "config.json" in dockerSecret
return a.InjectCredential(ctx, *dockerSecret, registry, cred)
Expand Down

0 comments on commit 25c90c8

Please sign in to comment.