Skip to content

Commit 9e97bb4

Browse files
In v1b3 the ET does have a Kreference.address run codegen (#4332)
Signed-off-by: Matthias Wessendorf <mwessend@redhat.com> Co-authored-by: Matthias Wessendorf <mwessend@redhat.com>
1 parent 00fcf31 commit 9e97bb4

File tree

1 file changed

+17
-2
lines changed
  • data-plane/core/src/main/java/dev/knative/eventing/kafka/broker/core/eventtype

1 file changed

+17
-2
lines changed

data-plane/core/src/main/java/dev/knative/eventing/kafka/broker/core/eventtype/KReference.java

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ public class KReference implements KubernetesResource {
4040
@JsonProperty("namespace")
4141
private String namespace;
4242

43+
@JsonProperty("address")
44+
private String address;
45+
4346
public KReference() {}
4447

4548
public KReference(String apiVersion, String kind, String name, String namespace) {
@@ -94,6 +97,16 @@ public void setNamespace(String namespace) {
9497
this.namespace = namespace;
9598
}
9699

100+
@JsonProperty("address")
101+
public String getAddress() {
102+
return this.address;
103+
}
104+
105+
@JsonProperty("address")
106+
public void setAddress(String address) {
107+
this.address = address;
108+
}
109+
97110
@Override
98111
public boolean equals(Object o) {
99112
if (this == o) return true;
@@ -102,7 +115,8 @@ public boolean equals(Object o) {
102115
return Objects.equals(this.getApiVersion(), that.getApiVersion())
103116
&& Objects.equals(this.getKind(), that.getKind())
104117
&& Objects.equals(this.getName(), that.getName())
105-
&& Objects.equals(this.getNamespace(), that.getNamespace());
118+
&& Objects.equals(this.getNamespace(), that.getNamespace())
119+
&& Objects.equals(this.getAddress(), that.getAddress());
106120
}
107121

108122
protected boolean canEqual(Object o) {
@@ -111,6 +125,7 @@ protected boolean canEqual(Object o) {
111125

112126
@Override
113127
public int hashCode() {
114-
return Objects.hash(this.getApiVersion(), this.getKind(), this.getName(), this.getNamespace());
128+
return Objects.hash(
129+
this.getApiVersion(), this.getKind(), this.getName(), this.getNamespace(), this.getAddress());
115130
}
116131
}

0 commit comments

Comments
 (0)