Search in sources :

Example 21 with OpenSslCertManager

use of io.strimzi.certs.OpenSslCertManager in project strimzi-kafka-operator by strimzi.

the class ZookeeperClusterTest method generateNodeSecret.

private Secret generateNodeSecret() {
    ClusterCa clusterCa = new ClusterCa(Reconciliation.DUMMY_RECONCILIATION, new OpenSslCertManager(), new PasswordGenerator(10, "a", "a"), cluster, null, null);
    clusterCa.createRenewOrReplace(namespace, cluster, emptyMap(), emptyMap(), emptyMap(), null, true);
    zc.generateCertificates(ka, clusterCa, true);
    return zc.generateNodesSecret(clusterCa);
}
Also used : OpenSslCertManager(io.strimzi.certs.OpenSslCertManager) PasswordGenerator(io.strimzi.operator.common.PasswordGenerator)

Example 22 with OpenSslCertManager

use of io.strimzi.certs.OpenSslCertManager in project strimzi by strimzi.

the class ZookeeperClusterTest method generateNodeSecret.

private Secret generateNodeSecret() {
    ClusterCa clusterCa = new ClusterCa(Reconciliation.DUMMY_RECONCILIATION, new OpenSslCertManager(), new PasswordGenerator(10, "a", "a"), cluster, null, null);
    clusterCa.createRenewOrReplace(namespace, cluster, emptyMap(), emptyMap(), emptyMap(), null, true);
    zc.generateCertificates(ka, clusterCa, true);
    return zc.generateNodesSecret(clusterCa);
}
Also used : OpenSslCertManager(io.strimzi.certs.OpenSslCertManager) PasswordGenerator(io.strimzi.operator.common.PasswordGenerator)

Aggregations

OpenSslCertManager (io.strimzi.certs.OpenSslCertManager)22 PasswordGenerator (io.strimzi.operator.common.PasswordGenerator)20 Secret (io.fabric8.kubernetes.api.model.Secret)10 ParallelTest (io.strimzi.test.annotations.ParallelTest)8 SecretBuilder (io.fabric8.kubernetes.api.model.SecretBuilder)6 ResourceOperatorSupplier (io.strimzi.operator.cluster.operator.resource.ResourceOperatorSupplier)6 SecretOperator (io.strimzi.operator.common.operator.resource.SecretOperator)6 Future (io.vertx.core.Future)6 Clock (java.time.Clock)5 ConfigMap (io.fabric8.kubernetes.api.model.ConfigMap)4 Service (io.fabric8.kubernetes.api.model.Service)4 ServiceAccount (io.fabric8.kubernetes.api.model.ServiceAccount)4 Deployment (io.fabric8.kubernetes.api.model.apps.Deployment)4 NetworkPolicy (io.fabric8.kubernetes.api.model.networking.v1.NetworkPolicy)4 CruiseControlResources (io.strimzi.api.kafka.model.CruiseControlResources)4 CruiseControlSpec (io.strimzi.api.kafka.model.CruiseControlSpec)4 CruiseControlSpecBuilder (io.strimzi.api.kafka.model.CruiseControlSpecBuilder)4 Kafka (io.strimzi.api.kafka.model.Kafka)4 KafkaBuilder (io.strimzi.api.kafka.model.KafkaBuilder)4 BrokerCapacityBuilder (io.strimzi.api.kafka.model.balancing.BrokerCapacityBuilder)4