Skip to content

Commit 1f6b9b3

Browse files
authored
Merge pull request #46529 from stevsmit/BZ2080451
Adds a note for what to do when creating non AMD64 architecture Opera…
2 parents 1efb5bb + 780b198 commit 1f6b9b3

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

modules/osdk-bundle-operator.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ endif::[]
3737
----
3838
$ make docker-build IMG=<registry>/<user>/<operator_image_name>:<tag>
3939
----
40+
+
41+
[NOTE]
42+
====
43+
The Dockerfile generated by the SDK for the Operator explicitly references `GOARCH=amd64` for `go build`. This can be amended to `GOARCH=$TARGETARCH` for non-AMD64 architectures. Docker will automatically set the environment variable to the value specified by `–platform`. With Buildah, the `–build-arg` will need to be used for the purpose. For more information, see link:https://sdk.operatorframework.io/docs/advanced-topics/multi-arch/#supporting-multiple-architectures[Multiple Architectures].
44+
====
4045

4146
.. Push the image to a repository:
4247
+

modules/osdk-run-deployment.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ endif::[]
3838
----
3939
$ make docker-build IMG=<registry>/<user>/<image_name>:<tag>
4040
----
41+
+
42+
[NOTE]
43+
====
44+
The Dockerfile generated by the SDK for the Operator explicitly references `GOARCH=amd64` for `go build`. This can be amended to `GOARCH=$TARGETARCH` for non-AMD64 architectures. Docker will automatically set the environment variable to the value specified by `–platform`. With Buildah, the `–build-arg` will need to be used for the purpose. For more information, see link:https://sdk.operatorframework.io/docs/advanced-topics/multi-arch/#supporting-multiple-architectures[Multiple Architectures].
45+
====
4146

4247
.. Push the image to a repository:
4348
+

0 commit comments

Comments
 (0)