Skip to content

Commit

Permalink
Review comments scholzj
Browse files Browse the repository at this point in the history
Signed-off-by: Katherine Stanley <[email protected]>
  • Loading branch information
katheris committed Sep 23, 2024
1 parent 61909b0 commit 3aef494
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ public abstract class AbstractAssemblyOperator<C extends KubernetesClient, T ext
protected final List<LocalObjectReference> imagePullSecrets;
protected final KafkaVersion.Lookup versions;
protected long operationTimeoutMs;
protected final boolean isPodDisruptionBudgetGeneration;

/**
* @param vertx The Vertx instance
Expand Down Expand Up @@ -94,7 +93,6 @@ protected AbstractAssemblyOperator(Vertx vertx, PlatformFeaturesAvailability pfa
this.imagePullSecrets = config.getImagePullSecrets();
this.versions = config.versions();
this.operationTimeoutMs = config.getOperationTimeoutMs();
this.isPodDisruptionBudgetGeneration = config.isPodDisruptionBudgetGeneration();
}

protected Future<Boolean> delete(Reconciliation reconciliation) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ public class KafkaBridgeAssemblyOperator extends AbstractAssemblyOperator<Kubern

private final DeploymentOperator deploymentOperations;
private final SharedEnvironmentProvider sharedEnvironmentProvider;
private final boolean isPodDisruptionBudgetGeneration;

/**
* @param vertx The Vertx instance
Expand All @@ -64,6 +65,7 @@ public KafkaBridgeAssemblyOperator(Vertx vertx, PlatformFeaturesAvailability pfa
super(vertx, pfa, KafkaBridge.RESOURCE_KIND, certManager, passwordGenerator, supplier.kafkaBridgeOperator, supplier, config);
this.deploymentOperations = supplier.deploymentOperations;
this.sharedEnvironmentProvider = supplier.sharedEnvironmentProvider;
this.isPodDisruptionBudgetGeneration = config.isPodDisruptionBudgetGeneration();
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ protected Future<KafkaMirrorMakerStatus> createOrUpdate(Reconciliation reconcili
annotations.put(Annotations.ANNO_STRIMZI_LOGGING_HASH, Util.hashStub(logAndMetricsConfigMap.getData().get(mirror.logging().configMapKey())));
return configMapOperations.reconcile(reconciliation, namespace, KafkaMirrorMakerResources.metricsAndLogConfigMapName(reconciliation.name()), logAndMetricsConfigMap);
})
.compose(i -> isPodDisruptionBudgetGeneration ? podDisruptionBudgetOperator.reconcile(reconciliation, namespace, mirror.getComponentName(), mirror.generatePodDisruptionBudget()) : Future.succeededFuture())
.compose(i -> podDisruptionBudgetOperator.reconcile(reconciliation, namespace, mirror.getComponentName(), mirror.generatePodDisruptionBudget()))
.compose(i -> Future.join(VertxUtil.authTlsHash(secretOperations, namespace, authConsumer, trustedCertificatesConsumer),
VertxUtil.authTlsHash(secretOperations, namespace, authProducer, trustedCertificatesProducer)))
.compose(hashFut -> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ public class KafkaReconciler {
// Various settings
private final long operationTimeoutMs;
private final boolean isNetworkPolicyGeneration;
private final boolean isPodDisruptionBudgetGeneration;
private final boolean isKafkaNodePoolsEnabled;
private final List<String> maintenanceWindows;
private final String operatorNamespace;
Expand All @@ -122,7 +123,6 @@ public class KafkaReconciler {
private final ImagePullPolicy imagePullPolicy;
private final List<LocalObjectReference> imagePullSecrets;
private final List<Integer> previousNodeIds;
private final boolean isPodDisruptionBudgetGeneration;

// Objects used during the reconciliation
/* test */ final Reconciliation reconciliation;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,11 @@ public class ZooKeeperReconciler {
private final String operatorNamespace;
private final Labels operatorNamespaceLabels;
private final boolean isNetworkPolicyGeneration;
private final boolean isPodDisruptionBudgetGeneration;
private final PlatformFeaturesAvailability pfa;
private final int adminSessionTimeoutMs;
private final ImagePullPolicy imagePullPolicy;
private final List<LocalObjectReference> imagePullSecrets;
private final boolean isPodDisruptionBudgetGeneration;

private final StatefulSetOperator stsOperator;
private final StrimziPodSetOperator strimziPodSetOperator;
Expand Down

0 comments on commit 3aef494

Please sign in to comment.