Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes significant changes to the
automq-operator
project, focusing on workflow improvements, refactoring the main application, and enhancing end-to-end tests. The most important changes include renaming jobs in the GitHub Actions workflow, refactoring the main application to use a centralized API registry, and adding new end-to-end tests.Workflow Improvements:
.github/workflows/test.yml
: Renamedjob2
tojob1
and vice versa, added a step to log disk space before freeing it up, and modified the job to install Kubernetes and applications instead of pruning the OS. [1] [2] [3] [4]Application Refactoring:
cmd/main.go
: Removed direct Gin router setup in favor of using theAPIRegistry
function from thecontroller
package. [1] [2]internal/controller/automq_apis.go
: Added a new file to handle API registration using Gin.End-to-End Testing Enhancements:
e2e/automq_cluster_controller_test.go
: Added a new end-to-end test for theautomq_controller
to verify custom resource creation and cleanup.e2e/automq_cluster_test.go
: Refactored existing tests to include component status checks for Minio, Cert-Manager, Prometheus, and Kafka-UI. [1] [2] [3] [4]e2e/httplib.go
: Added a new utility for making HTTP requests in end-to-end tests.e2e/utils.go
: Minor import reorganization.