diff --git a/pkg/registry/ecr_cred_injector.go b/pkg/registry/ecr_cred_injector.go index b20497f4..741fdd6f 100644 --- a/pkg/registry/ecr_cred_injector.go +++ b/pkg/registry/ecr_cred_injector.go @@ -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)