This pull request includes significant changes to the internal/controller/automq_controller_c.go file, primarily focused on refactoring the controller synchronization logic from using StatefulSets to Deployments. The changes also involve some minor code cleanups.
Controller Synchronization Refactor:
Replaced the synchronization logic from StatefulSet to Deployment in the syncControllerDeploy function. This includes updating the resource creation and update logic, as well as the associated labels, annotations, and specifications. (internal/controller/automq_controller_c.go) [1][2][3][4][5]
Code Cleanups:
Removed the unnecessary import of strconv in the import section. (internal/controller/automq_controller_c.go)
Removed redundant code related to ClusterIP in the syncControllerService function. (internal/controller/automq_controller_c.go)
This pull request includes significant changes to the
internal/controller/automq_controller_c.go
file, primarily focused on refactoring the controller synchronization logic from using StatefulSets to Deployments. The changes also involve some minor code cleanups.Controller Synchronization Refactor:
StatefulSet
toDeployment
in thesyncControllerDeploy
function. This includes updating the resource creation and update logic, as well as the associated labels, annotations, and specifications. (internal/controller/automq_controller_c.go
) [1] [2] [3] [4] [5]Code Cleanups:
strconv
in the import section. (internal/controller/automq_controller_c.go
)ClusterIP
in thesyncControllerService
function. (internal/controller/automq_controller_c.go
)