-
Notifications
You must be signed in to change notification settings - Fork 835
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
feat: Allow kafka consumer group id prefix configuration #5072
feat: Allow kafka consumer group id prefix configuration #5072
Conversation
…ipeline demo for clusterwide
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
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.
Some recommended changes, although this looks to be functionally correct
Co-authored-by: Alex Rakowski <[email protected]>
Co-authored-by: Alex Rakowski <[email protected]>
Co-authored-by: Alex Rakowski <[email protected]>
@@ -31,7 +31,7 @@ import java.nio.file.Files | |||
object K8sCertSecretsProvider { | |||
|
|||
private val kubeConfigPath: String = System.getenv("HOME") + "/.kube/config" | |||
private val namespace = System.getenv("POD_NAMESPACE") | |||
private val namespace = System.getenv("SELDON_POD_NAMESPACE") |
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.
💭 I'll put in a small follow-up PR to move these to use the CLI-provided value
@@ -25,6 +25,7 @@ import org.apache.kafka.streams.StreamsBuilder | |||
import org.apache.kafka.streams.StreamsConfig | |||
import org.apache.kafka.streams.Topology | |||
import java.util.concurrent.CountDownLatch | |||
import javax.xml.stream.events.Namespace |
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.
🔧 Accidental import?
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.
will remove
@@ -72,7 +74,7 @@ class PipelineSubscriber( | |||
suspend fun subscribe() { | |||
logger.info("will connect to ${upstreamHost}:${upstreamPort}") | |||
retry(grpcFailurePolicy + binaryExponentialBackoff(50..5_000L)) { | |||
subscribePipelines() | |||
subscribePipelines(kafkaConsumerGroupIdPrefix, namespace) |
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.
🙃 No need to pass these parameters explicitly as they've private val
s above; happy to change in a follow-up PR for expediency
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.
Only minor comments outstanding; approving and will create a follow-up for a few tidy-ups as indicated in comments
What this PR does / why we need it:
Allows for customization of the Kafka consumer group id prefix.
Which issue(s) this PR fixes:
Fixes #5063