Skip to content

Commit 5f1070a

Browse files
committed
fix: staticallty link ecr-credential-provider
The bump to v1.33 changed the binary to be dynamically linked. Explicitly set `CGO_ENABLED=0` while building. Fixes: #706 Signed-off-by: Noel Georgi <[email protected]>
1 parent 40a0b65 commit 5f1070a

File tree

1 file changed

+1
-1
lines changed
  • container-runtime/ecr-credential-provider

1 file changed

+1
-1
lines changed

container-runtime/ecr-credential-provider/pkg.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ steps:
2828
- network: none
2929
build:
3030
- |
31-
go build \
31+
CGO_ENABLED=0 go build \
3232
-C ${GOPATH}/src/k8s.io/cloud-provider-aws \
3333
-o ./dist/ecr-credential-provider \
3434
-ldflags "-s -w \

0 commit comments

Comments
 (0)