in credentialproviderpackage/pkg/configurator/linux/linux.go [185:210]
func copyBinaries() (string, error) {
srcPath := binPath + getApiVersion() + "/" + ecrCredProviderBinary
dstPath := basePath + ecrCredProviderBinary
err := copyWithPermissons(srcPath, dstPath, 0o700)
if err != nil {
return "", err
}
err = os.Chmod(dstPath, 0o700)
if err != nil {
return "", err
}
srcPath = binPath + iamRolesSigningBinary
dstPath = basePath + iamRolesSigningBinary
err = copyWithPermissons(srcPath, dstPath, 0o700)
if err != nil {
return "", err
}
err = os.Chmod(dstPath, 0o700)
if err != nil {
return "", err
}
return fmt.Sprintf(" --image-credential-provider-bin-dir=%s", basePath), nil
}