-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configure new version of the quota plugin #719
Configure new version of the quota plugin #719
Conversation
operator/src/main/java/org/bf2/operator/operands/KafkaCluster.java
Outdated
Show resolved
Hide resolved
allow kafka and zookeeper images to be overridden (supports development use-cases)
KafkaInstanceConfiguration.Kafka kafka = instanceConfig.getKafka(); | ||
config.put("client.quota.callback.usageMetrics.topic", String.valueOf(kafka.getQuotaCallbackUsageMetricsTopic())); | ||
config.put("client.quota.callback.quotaPolicy.check-interval", String.valueOf(kafka.getQuotaCallbackQuotaPolicyCheckInterval())); | ||
config.put("client.quota.callback.kafka.clientIdPrefix", String.valueOf(kafka.getQuotaCallbackQuotaKafkaClientIdPrefix())); | ||
config.put("client.quota.callback.static.storage.check-interval", String.valueOf(instanceConfig.getStorage().getCheckInterval())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to mention it, the OperandOverride
class supports additionalProperties
that can be used to configure properties specific to a Strimzi bundle deployment version.
That can be leveraged to only apply new/changed properties alongside the image updates they align with. I think ultimately we'll want to use that (or something like it) to extend support for blast-radius control to include configuration as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks - that's useful. In this case, the new config is just adds so it is harmless to pass new config to the old plugin.
@SamBarker can you re-review, once you are happy I believe this is good to merge. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
The new quota plugin requires additional configuration options. This PR passes those options. The new configuration options will be ignored by the older version of the plugin, so will be safe for older bundle versions.
This PR also let's you override the kafka/zookeeper images via either the configmap or fleetshard environment variables. Just set a env var on the deployment like this and it will override the image provided by the rhosak bundle.