Skip to content

Commit

Permalink
feat: extended tests for KubeDNS + new flows helper
Browse files Browse the repository at this point in the history
  • Loading branch information
yandzee committed Nov 23, 2020
1 parent feb9aaa commit 9579fbb
Show file tree
Hide file tree
Showing 4 changed files with 1,517 additions and 16 deletions.
4 changes: 2 additions & 2 deletions src/domain/flows/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export class Flow {
return this.ref.destination?.podName ?? null;
}

public get sourcePort() {
public get sourcePort(): number | null {
if (this.ref.l4?.tcp) {
return this.ref.l4.tcp.sourcePort;
}
Expand All @@ -133,7 +133,7 @@ export class Flow {
return null;
}

public get destinationPort() {
public get destinationPort(): number | null {
if (this.ref.l4?.tcp) {
return this.ref.l4.tcp.destinationPort;
}
Expand Down
Loading

0 comments on commit 9579fbb

Please sign in to comment.