Skip to content

Commit

Permalink
Fixing bugs by pipeline
Browse files Browse the repository at this point in the history
Signed-off-by: Steffen Karlsson <[email protected]>
  • Loading branch information
steffen-karlsson committed Mar 12, 2024
1 parent 325b9fe commit b5a884f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
@ToString
public class KafkaBridgeConsumerEnablement implements UnknownPropertyPreserving, Serializable {

private static final long serialVersionUID = 1L;

private boolean enabled = true;
private Map<String, Object> additionalProperties;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
@ToString
public class KafkaBridgeProducerEnablement implements UnknownPropertyPreserving, Serializable {

private static final long serialVersionUID = 1L;

private boolean enabled = true;
private Map<String, Object> additionalProperties;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.stream.Collectors;

import static java.util.Collections.emptyMap;
Expand Down Expand Up @@ -59,6 +60,7 @@ public void setAdditionalProperty(String name, Object value) {
}

public String toVarString() {
Objects.requireNonNull(this.trustedCertificates, "trustedCertificates cannot be null");
return this.trustedCertificates.stream()
.map(certSecretSource -> certSecretSource.getSecretName() + "/" + certSecretSource.getCertificate())
.collect(Collectors.joining(";"));
Expand Down

0 comments on commit b5a884f

Please sign in to comment.