Skip to content

Commit 37feef9

Browse files
committed
Review comments PP
Signed-off-by: Jakub Scholz <[email protected]>
1 parent f4e6377 commit 37feef9

5 files changed

Lines changed: 7 additions & 8 deletions

File tree

api/src/main/java/io/strimzi/api/kafka/model/kafka/clustersecurity/ClusterSecurity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import java.util.Map;
1919

2020
/**
21-
* Representation of the Cluster Security configuration.
21+
* Representation of the desired Cluster Security configuration.
2222
*/
2323
@Buildable(
2424
editableEnabled = false,

api/src/main/java/io/strimzi/api/kafka/model/kafka/clustersecurity/ClusterSecurityAuthentication.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import java.util.Map;
1919

2020
/**
21-
* Representation of the Cluster Security authentication status.
21+
* Representation of the desired Cluster Security authentication.
2222
*/
2323
@Buildable(
2424
editableEnabled = false,

api/src/main/java/io/strimzi/api/kafka/model/kafka/clustersecurity/ClusterSecurityEncryption.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import java.util.Map;
1919

2020
/**
21-
* Representation of the Cluster Security encryption status.
21+
* Representation of the desired Cluster Security encryption.
2222
*/
2323
@Buildable(
2424
editableEnabled = false,

cluster-operator/src/main/java/io/strimzi/operator/cluster/model/KafkaCluster.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1906,7 +1906,7 @@ private String generatePerBrokerConfiguration(NodeRef node, KafkaPool pool, Map<
19061906
/**
19071907
* Internal method used to generate a Kafka agent configuration for given Kafka node.
19081908
*
1909-
* @param node Node reference with Node ID and pod name
1909+
* @param node Node reference with Node ID and pod name
19101910
*
19111911
* @return String with the Kafka agent configuration
19121912
*/

cluster-operator/src/main/java/io/strimzi/operator/cluster/operator/resource/KafkaAgentClient.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ public class KafkaAgentClient {
4444
private final String namespace;
4545
private final Reconciliation reconciliation;
4646
private final String cluster;
47-
private Identity identity;
48-
private HttpClient httpClient;
47+
private final Identity identity;
48+
private final HttpClient httpClient;
4949

5050
/**
5151
* Constructor
@@ -134,8 +134,7 @@ public BrokerState getBrokerState(String podName) {
134134
BrokerState brokerstate = new BrokerState(-1, null);
135135
String host = DnsNameGenerator.podDnsName(namespace, KafkaResources.brokersServiceName(cluster), podName);
136136
try {
137-
String scheme = identity.trustSet() instanceof PemTrustSet ? "https" : "http";
138-
URI uri = new URI(scheme, null, host, KAFKA_AGENT_HTTPS_PORT, BROKER_STATE_REST_PATH, null, null);
137+
URI uri = new URI(identity.trustSet() instanceof PemTrustSet ? "https" : "http", null, host, KAFKA_AGENT_HTTPS_PORT, BROKER_STATE_REST_PATH, null, null);
139138
brokerstate = MAPPER.readValue(doGet(uri), BrokerState.class);
140139
} catch (JsonProcessingException e) {
141140
LOGGER.warnCr(reconciliation, "Failed to parse broker state", e);

0 commit comments

Comments
 (0)