@@ -87,7 +87,7 @@ The `java-operator-plugins` project uses the APIs from [java-operator-sdk](https
87
87
88
88
#### ` MemcachedSpec `
89
89
90
- Initially, the scaffolded Spec file will be empty. The operator developer needs
90
+ Initially, the scaffolded Spec file, ` MemcachedSpec ` , will be empty. The operator developer needs
91
91
to add attributes to this file according to their needs. For the ` Memcached `
92
92
example, we will add the size field as shown in the example below.
93
93
@@ -564,15 +564,20 @@ The following steps will show how to run your operator in the cluster.
564
564
565
565
The ` java-operator-plugins ` project will scaffold out a Makefile to give
566
566
Operator SDK users a familiar interface. Using the ` docker-* ` targets you can
567
- conveniently build your and push your operator's image to registry. In our
568
- example, we are using ` quay.io ` , but any docker registry should work.
567
+ conveniently build and push your operator's image to a registry.
568
+
569
+ To build and push the docker image, you will need to specify the name of the image, ` IMG ` ,
570
+ that will be built as well as the operating system, ` OS ` , and the architecture,
571
+ ` ARCH ` , that the image will be built for. In this example, we are using
572
+ ` quay.io ` as the registry the image will be pushed to, but any docker registry should work.
569
573
570
574
```
571
- make docker-build docker-push IMG=quay.io/YOURUSER/memcached-quarkus-operator:v0.0.1
575
+ make docker-build docker-push IMG=quay.io/YOURUSER/memcached-quarkus-operator:v0.0.1 OS=linux ARCH=arm64
572
576
```
573
577
574
- This will build the docker image
575
- ` quay.io/YOURUSER/memcached-quarkus-operator:v0.0.1 ` and push it to the registry.
578
+ This will build the docker image
579
+ ` quay.io/YOURUSER/memcached-quarkus-operator:v0.0.1 ` for linux/arm64 and push it
580
+ to the ` quay.io ` registry.
576
581
577
582
You can verify it is in your docker registry:
578
583
0 commit comments