Closed cuisongliu closed 1 week ago
This pull request modifies the AutoMQReconciler to change the return types of various pipeline functions from context.Context to bool, simplifying the logic for determining whether to continue the pipeline.
AutoMQReconciler
context.Context
bool
internal/controller/automq_controller.go
s3Service
scriptConfigmap
syncBrokers
internal/controller/automq_controller_b.go
syncBrokerScale
syncKafkaBootstrapService
internal/controller/automq_controller_c.go
syncControllersScale
syncControllers
setGoto
This pull request modifies the
AutoMQReconciler
to change the return types of various pipeline functions fromcontext.Context
tobool
, simplifying the logic for determining whether to continue the pipeline.Changes to Return Types:
internal/controller/automq_controller.go
: Changed the return type of pipeline functionss3Service
,scriptConfigmap
, andsyncBrokers
fromcontext.Context
tobool
. [1] [2] [3]internal/controller/automq_controller_b.go
: Changed the return type ofsyncBrokerScale
andsyncKafkaBootstrapService
fromcontext.Context
tobool
. [1] [2]internal/controller/automq_controller_c.go
: Changed the return type ofsyncControllersScale
andsyncControllers
fromcontext.Context
tobool
. [1] [2]Simplification of Pipeline Logic:
internal/controller/automq_controller.go
: Updated the pipeline execution logic to use the new boolean return type for determining whether to continue.setGoto
function and associated context value setting ins3Service
andscriptConfigmap
functions. [1] [2]