redpanda-data / helm-charts

Redpanda Helm Chart
http://redpanda.com
Apache License 2.0
77 stars 96 forks source link

Add KafkaClient and AdminClient helpers to construct clients from a chart specification #1486

Closed andrewstucki closed 3 months ago

andrewstucki commented 3 months ago

This adds in a helper for constructing a client to a cluster based on a given chart configuration using our generator code.

This code re-implements the more ad-hoc code from the WIP PR https://github.com/redpanda-data/redpanda-operator/pull/181, allowing us to leverage more of the generator helpers and co-locating the code that actually knows how our resource names are constructed. This, combined with https://github.com/redpanda-data/helm-charts/pull/1484 and our existing helm client in this repo should allow me to re-implement the intent of the original PR (initializing clients from a Redpanda ClusterRef) in a much cleaner, more ergonomic way.