Closed rooftopcellist closed 8 months ago
@rooftopcellist: The label(s) language/ansible
cannot be applied, because the repository doesn't have them.
Thanks for creating this issue @rooftopcellist ! Would you be interested in creating a PR with the fix?
Sure thing, here's the PR @everettraven
Bug Report
Currently, there are two separate issues with the
make docker-buildx
target in the Makefile that the ansible-operator-sdk lays down.Problem 1
The
test
target does not exist, so it immediately fails because of this.Problem 2 The sed command to add a line to a temporary Dockerfile.cross file for specifying BUILDPLATFORM is not needed, and actually causes issues. See this comment for more details:
I think that the diff here should be added to the examples in the ansible-operator-plugins repo.
Please let me know your thoughts, I'm happy to chat more!
What did you expect to see?
The make docker-buildx command fails immediately because the
test
target does not exist.Additionally, once this part is fixed, the arches specified in the PLATFORMS env variable are not honored.
What did you see instead? Under which circumstances?
Environment
Operator type:
Ansible Operatore
Kubernetes cluster type:
Any
$ operator-sdk version
$ operator-sdk version operator-sdk version: "v1.22.0", commit: "9e95050a94577d1f4ecbaeb6c2755a9d2c231289", kubernetes version: "1.24.1", go version: "go1.18.3", GOOS: "linux", GOARCH: "amd64"
$ kubectl version
Possible Solution
Described above
Additional context
Context in this PR for the EDA Server Operator: