-
Notifications
You must be signed in to change notification settings - Fork 200
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
## Description #1080
## Description #1080
Conversation
As part of banzaicloud#929, the local replacement for sub-modules was removed in favor of using valid tags. Adobe Koperator fork has some internal changes in the api sub-module, so we need to use the local version of the sub-module instead of the upstream version, so we are forced to revert the changes from banzaicloud#929.
…adobe/kafka docker hub repos - build the koperator docker image - build Apache kafka docker image When `kafka-*` tags are created a github action is triggered to build and push a new adobe/kafka docker image version Allow broker libs injector to copy jars into KAFKA_HOME
We made some chnages for spinnaker annotations and `preserveUnknownFields` that would be overriden by `make manifests`
…ised.listeners configuration This is needed for old clients connecting to kafka through Zookeeper that does not have a way to infer the right listener. In this case, the first listener in the advertised.listener config is used to connect to brokers. This patch ensures the external listeners (those reachable from outside) are listed before internal ones
…and clients 1/ Kafka broker defines connections.max.idle.ms=600s To ensure envoy as a client for kafka broker is terminating the connection first to avoid network disconnects this patch is setting the idleTimeout to value slightly less than that 2/ Enable tcp-keep alive for all TCP connections established by envoy to kafka and to client (or fronting Load Balancer)
Added explicit typeconfig for envoy.filters.http.router ``` [2022-06-16 13:27:58.425][1][info][main] [source/server/server.cc:939] exiting Didn't find a registered implementation for 'envoy.filters.http.router' with type URL: '' ```
Co-authored-by: Adrian Muraru <[email protected]>
* Implement disk removal feature --------- Co-authored-by: Alex Necula <[email protected]>
* Handle the case when the request to CC STATE endpoint returns the async task instead of the result When the request on /state endpoint of CC takes longer than webserver.request.maxBlockTimeMs, then CC will convert the request into an async task and will respond with the taskID instead of the result. The Koperator should handle this case by waiting for CC to complete the task.
Co-authored-by: Petruț™ <[email protected]>
* Added arm64 to docker build platforms * Regenerated headers for 2024
|
exposedPorts = append(exposedPorts, corev1.ContainerPort{ | ||
Name: fmt.Sprintf("broker-%d", brokerId), | ||
ContainerPort: extListener.ExternalStartingPort + int32(brokerId), | ||
ContainerPort: extListener.GetBrokerPort(int32(brokerId)), |
Check failure
Code scanning / CodeQL
Incorrect conversion between integer types High
strconv.Atoi
return "" | ||
|
||
if elistener.TLSEnabled() { | ||
filterChain, err = GenerateEnvoyTLSFilterChain(tcpProxy, ingressConfig.EnvoyConfig.GetBrokerHostname(int32(brokerId)), log) |
Check failure
Code scanning / CodeQL
Incorrect conversion between integer types High
strconv.Atoi
}, | ||
}) | ||
|
||
brokerPort := elistener.GetBrokerPort(int32(brokerId)) |
Check failure
Code scanning / CodeQL
Incorrect conversion between integer types High
strconv.Atoi
if util.ShouldIncludeBroker(brokerConfig, kafkaCluster.Status, brokerId, defaultIngressConfigName, ingressConfigName) { | ||
exposedPorts = append(exposedPorts, corev1.ServicePort{ | ||
Name: fmt.Sprintf("broker-%d", brokerId), | ||
Port: extListener.GetBrokerPort(int32(brokerId)), |
Check failure
Code scanning / CodeQL
Incorrect conversion between integer types High
strconv.Atoi
exposedPorts = append(exposedPorts, corev1.ServicePort{ | ||
Name: fmt.Sprintf("broker-%d", brokerId), | ||
Port: extListener.GetBrokerPort(int32(brokerId)), | ||
TargetPort: intstr.FromInt(int(extListener.GetBrokerPort(int32(brokerId)))), |
Check failure
Code scanning / CodeQL
Incorrect conversion between integer types High
strconv.Atoi
@@ -70,7 +70,7 @@ | |||
if util.ShouldIncludeBroker(brokerConfig, kc.Status, brokerId, defaultIngressConfigName, ingressConfigName) { | |||
servers = append(servers, istioclientv1beta1.Server{ | |||
Port: &istioclientv1beta1.Port{ | |||
Number: int(externalListenerConfig.ExternalStartingPort) + brokerId, | |||
Number: int(externalListenerConfig.GetBrokerPort(int32(brokerId))), |
Check failure
Code scanning / CodeQL
Incorrect conversion between integer types High
strconv.Atoi
@@ -103,8 +103,8 @@ | |||
generatedPorts = append(generatedPorts, &istioOperatorApi.ServicePort{ | |||
Name: fmt.Sprintf("tcp-broker-%d", brokerId), | |||
Protocol: string(corev1.ProtocolTCP), | |||
Port: externalListenerConfig.ExternalStartingPort + int32(brokerId), | |||
TargetPort: &istioOperatorApi.IntOrString{IntOrString: intstr.FromInt(int(externalListenerConfig.ExternalStartingPort) + brokerId)}, | |||
Port: externalListenerConfig.GetBrokerPort(int32(brokerId)), |
Check failure
Code scanning / CodeQL
Incorrect conversion between integer types High
strconv.Atoi
Port: externalListenerConfig.ExternalStartingPort + int32(brokerId), | ||
TargetPort: &istioOperatorApi.IntOrString{IntOrString: intstr.FromInt(int(externalListenerConfig.ExternalStartingPort) + brokerId)}, | ||
Port: externalListenerConfig.GetBrokerPort(int32(brokerId)), | ||
TargetPort: &istioOperatorApi.IntOrString{IntOrString: intstr.FromInt(int(externalListenerConfig.GetBrokerPort(int32(brokerId))))}, |
Check failure
Code scanning / CodeQL
Incorrect conversion between integer types High
strconv.Atoi
@@ -79,7 +79,7 @@ | |||
tlsRoutes = append(tlsRoutes, istioclientv1beta1.TLSRoute{ | |||
Match: []istioclientv1beta1.TLSMatchAttributes{ | |||
{ | |||
Port: util.IntPointer(int(externalListenerConfig.ExternalStartingPort) + brokerId), | |||
Port: util.IntPointer(int(externalListenerConfig.GetBrokerPort(int32(brokerId)))), |
Check failure
Code scanning / CodeQL
Incorrect conversion between integer types High
strconv.Atoi
@@ -132,7 +132,7 @@ | |||
tcpRoutes = append(tcpRoutes, istioclientv1beta1.TCPRoute{ | |||
Match: []istioclientv1beta1.L4MatchAttributes{ | |||
{ | |||
Port: util.IntPointer(int(externalListenerConfig.ExternalStartingPort) + brokerId), | |||
Port: util.IntPointer(int(externalListenerConfig.GetBrokerPort(int32(brokerId)))), |
Check failure
Code scanning / CodeQL
Incorrect conversion between integer types High
Please provide a meaningful description of what this change will do, or is for. Bonus points for including links to
related issues, other PRs, or technical references.
Note that by not including a description, you are asking reviewers to do extra work to understand the context of this
change, which may lead to your PR taking much longer to review, or result in it not being reviewed at all.
Type of Change
Checklist