use of io.strimzi.api.kafka.model.template.KafkaConnectTemplateBuilder in project debezium by debezium.
the class OcpKafkaConnectDeployer method configurePullSecret.
private void configurePullSecret(KafkaConnectBuilder kcBuilder, Build kcBuild) {
KafkaConnectTemplate template = kcBuilder.buildSpec().getTemplate();
KafkaConnectTemplateBuilder templateBuilder = new KafkaConnectTemplateBuilder(template);
if (kcBuild == null) {
templateBuilder.withNewPod().addNewImagePullSecret(pullSecretName);
} else {
templateBuilder.withNewBuildConfig().withPullSecret(pullSecretName).endBuildConfig();
}
kcBuilder.editSpec().withTemplate(templateBuilder.build()).endSpec();
}
Aggregations