Skip to content

Commit

Permalink
Fixup: return nil when registry is not ECR
Browse files Browse the repository at this point in the history
  • Loading branch information
d8660091 committed Sep 12, 2023
1 parent c6330bc commit 498226d
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 498226d

Please sign in to comment.