File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
cmd/ecr-credential-provider Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ import (
3535
3636 metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
3737 "k8s.io/component-base/logs"
38+ "k8s.io/klog/v2"
3839 v1 "k8s.io/kubelet/pkg/apis/credentialprovider/v1"
3940)
4041
@@ -225,12 +226,12 @@ func parseHostFromImageReference(image string) (string, error) {
225226 return parsed .Hostname (), nil
226227}
227228
228- func parseRegionFromECRPrivateHost (host string ) ( string , error ) {
229+ func parseRegionFromECRPrivateHost (host string ) string {
229230 splitHost := ecrPrivateHostPattern .FindStringSubmatch (host )
230231 if len (splitHost ) != 5 {
231- return "" , fmt . Errorf ( "invalid private ECR host: %s" , host )
232+ return ""
232233 }
233- return splitHost [3 ], nil
234+ return splitHost [3 ]
234235}
235236
236237func main () {
You can’t perform that action at this time.
0 commit comments