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 introduces several changes to enhance the configuration and functionality of the AutoMQ operator. The key changes include adding a new
NodePort
field, integrating a new API endpoint to fetch node IPs, and updating the Kafka monitor script to use the new API endpoint.Configuration Enhancements:
api/v1beta1/automq_types.go
: Added a newNodePort
field to theAutoMQSpec
struct. ([api/v1beta1/automq_types.goR160-R161](https://github.com/cuisongliu/automq-operator/pull/36/files#diff-8fb9499d797e9e6073eb594990a409c444112ce192f26acc4cb88e16bbc8c537R160-R161)
)config/crd/bases/infra.cuisongliu.github.com_automqs.yaml
: Updated the CRD to include the newNodePort
field. ([config/crd/bases/infra.cuisongliu.github.com_automqs.yamlR600-R603](https://github.com/cuisongliu/automq-operator/pull/36/files#diff-e3ffe2350b5eeb12838983f35561eb4882fe76f83687a6f0781f7f64b230f21fR600-R603)
)API Integration:
cmd/main.go
:[cmd/main.goR21-R31](https://github.com/cuisongliu/automq-operator/pull/36/files#diff-c444f711e9191b53952edb65bfd8c644419fc7695c62611dc0fb304b4fb197d6R21-R31)
)[cmd/main.goR117-R159](https://github.com/cuisongliu/automq-operator/pull/36/files#diff-c444f711e9191b53952edb65bfd8c644419fc7695c62611dc0fb304b4fb197d6R117-R159)
)[cmd/main.goL126-R170](https://github.com/cuisongliu/automq-operator/pull/36/files#diff-c444f711e9191b53952edb65bfd8c644419fc7695c62611dc0fb304b4fb197d6L126-R170)
)Script Updates:
defaults/up.sh
: Updated thekafka_monitor_ip
function to use the new API endpoint to retrieve node IPs and set theadvertised.listeners
property accordingly. ([defaults/up.shL189-R208](https://github.com/cuisongliu/automq-operator/pull/36/files#diff-347cf2881e546936a79b979408aa53592a1abc1d110cabd2ac6ddde58232e4d8L189-R208)
)