This repository introduces some changes to the original operator. The changes are needed if we want the operator (and its resources) to run on ARM64 processors. To that end, the following files were modified:
File | Change Description |
---|
| .gitignore
| Add .DS_Store to ignore macOS filesystem elements. |
| Dockerfile.patch
| Created this file to build our custom operator as suggested in CONTRIBUTING.md. |
| mysqloperator/controller/config.py
| Wherever a version tag is being set, appended -aarch64
to the value.
Changes occur on lines 26, 31, 34, 35, & 44. |
| tag.sh
| Set default suffix to aarch64
.
To build the image, we use the new file Dockerfile.patch as the basis of the build.
The Dockerfile retrieves the fully compiled operator image, and then copies our new version of the mysqloperator
code.
Build the image (on an ARM64 host):
$ podman build \
-t ghcr.io/ifeelfine/community-operator:8.4.3-2.1.5-aarch64 \
-t ghcr.io/ifeelfine/community-operator:latest-aarch64 \
--label "org.opencontainers.image.source=https://github.com/ifeelfine/mysql-operator" \
--label "org.opencontainers.image.description=MySQL Operator image hardcoded to aarch64 achitecture" \
--label "org.opencontainers.image.licenses=MIT" \
-f Dockerfile.patch \
.
NOTE: The
latest-aarch64
tag will always point to the most recently released version of the operator. You may safely use it with your deployment manifests.
Version | Date | Notes |
---|---|---|
8.3.1-2.1.2 | March 7, 2024 | - Initial creation of the aarch64 coded image. |
8.4.1-2.1.4 | July 17, 1024 | - Bump to version 8.4.1. - aarch64 branch merged. |
8.4.3-2.1.5 | October 17, 2024 | - Bump to version 8.4.3. - aarch64 branch merged. |