Closed piec closed 7 months ago
@piec: The label(s) language/ansible
cannot be applied, because the repository doesn't have them.
I ran into the same issue. We would need to either change the .goreleaser.yaml
file to build binaries for different CPU architectures or update the makefile target to download the tarball and extract the binary from the tarball before placing it in the bin directory in the operator directory.
From my perspective, having the binaries in the releases seems to make more sense. This has been the behavior for a while however, if there is value in changing to tarballs I am open to hear.
Bug Report
What did you do?
make ansible-operator
What did you expect to see?
bin/ansible-operator
binaryWhat did you see instead? Under which circumstances?
Environment
Operator type:
/language ansible
Kubernetes cluster type:
vanilla
Possible Solution
The makefile expects a release asset named
ansible-operator_$(OS)_$(ARCH)
but the assets are tars (example: ansible-operator-plugins_1.32.0_linux_amd64.tar.gz).Please see the makefile template code: https://github.com/operator-framework/ansible-operator-plugins/blob/cbc2d46705c5beee42021429630c2e184c1283b6/pkg/plugins/ansible/v1/scaffolds/internal/templates/makefile.go#L169
Cheers