This pull request includes several changes to improve the organization and functionality of the automq-operator project. The most important changes involve moving default values to a new package, updating import paths, and modifying the Dockerfile to streamline the build process.
Codebase organization:
api/v1beta1/images.go renamed to defaults/images.go and updated the package name to defaults.
Updated import paths to use the new defaults package in various files (api/v1beta1/automq_webhook.go, api/v1beta1/webhook_suite_test.go, gen/gen.go). [1][2][3]
Default values:
Replaced references to DefaultImageName with defaults.DefaultImageName in the Default method of AutoMQ and related tests. [1][2]
Updated the gen/gen.go file to use defaults.DefaultImageName when writing the image name to a file.
Dockerfile improvements:
Consolidated the COPY commands in the Dockerfile to simplify the build process.
Workflow adjustments:
Moved the sealos login command to a different position within the push.yml workflow file to ensure it runs in the correct order.
Minor changes:
Fixed an import alias in the api/v1beta1/zz_generated.deepcopy.go file.
This pull request includes several changes to improve the organization and functionality of the
automq-operator
project. The most important changes involve moving default values to a new package, updating import paths, and modifying the Dockerfile to streamline the build process.Codebase organization:
api/v1beta1/images.go
renamed todefaults/images.go
and updated the package name todefaults
.defaults
package in various files (api/v1beta1/automq_webhook.go
,api/v1beta1/webhook_suite_test.go
,gen/gen.go
). [1] [2] [3]Default values:
DefaultImageName
withdefaults.DefaultImageName
in theDefault
method ofAutoMQ
and related tests. [1] [2]gen/gen.go
file to usedefaults.DefaultImageName
when writing the image name to a file.Dockerfile improvements:
COPY
commands in theDockerfile
to simplify the build process.Workflow adjustments:
sealos login
command to a different position within thepush.yml
workflow file to ensure it runs in the correct order.Minor changes:
api/v1beta1/zz_generated.deepcopy.go
file.