This pull request includes several changes to the api/v1beta1/automq_types.go file, focusing on adding new fields, validation, and updates to the status structure. Additionally, there are updates to the CRD YAML file and the main Go file for the project. The most important changes include adding new fields to various specs, updating validation rules, and modifying the status structure.
New Fields and Validation Rules:
api/v1beta1/automq_types.go: Added EnablePathStyle field to S3Spec and StorageClass fields to ControllerSpec and BrokerSpec. Added validation rules for Type fields in NodeAffinity, PodAffinity, and PodAntiAffinity structs. [1][2][3][4][5]
Status Structure Updates:
api/v1beta1/automq_types.go: Updated AutoMQStatus struct to include ControllerReplicas, ControllerAddresses, and BrokerReplicas fields. Replaced StatusCondition with metav1.Condition.
These changes enhance the functionality and validation of the AutoMQ custom resource definitions and improve the overall structure and maintainability of the codebase.
This pull request includes several changes to the
api/v1beta1/automq_types.go
file, focusing on adding new fields, validation, and updates to the status structure. Additionally, there are updates to the CRD YAML file and the main Go file for the project. The most important changes include adding new fields to various specs, updating validation rules, and modifying the status structure.New Fields and Validation Rules:
api/v1beta1/automq_types.go
: AddedEnablePathStyle
field toS3Spec
andStorageClass
fields toControllerSpec
andBrokerSpec
. Added validation rules forType
fields inNodeAffinity
,PodAffinity
, andPodAntiAffinity
structs. [1] [2] [3] [4] [5]Status Structure Updates:
api/v1beta1/automq_types.go
: UpdatedAutoMQStatus
struct to includeControllerReplicas
,ControllerAddresses
, andBrokerReplicas
fields. ReplacedStatusCondition
withmetav1.Condition
.api/v1beta1/status.go
: RemovedStatusCondition
struct and related methods.CRD YAML Updates:
config/crd/bases/infra.cuisongliu.github.com_automqs.yaml
: Updated CRD definitions to include new fields and validation rules. RemovedshortMessage
from the status print columns. [1] [2] [3] [4] [5] [6] [7] [8] [9]Main Go File Updates:
cmd/main.go
: Added imports forpromv1
and updated themain
function to include a new flagmount-tz
. [1] [2] [3] [4]Deep Copy Updates:
api/v1beta1/zz_generated.deepcopy.go
: Updated deep copy functions to reflect changes in the status structure. [1] [2] [3]These changes enhance the functionality and validation of the AutoMQ custom resource definitions and improve the overall structure and maintainability of the codebase.