Skip to content

Commit

Permalink
fix(kuma-cp) nil check in IsIngress() to avoid panic when validating (#…
Browse files Browse the repository at this point in the history
…1424)

Signed-off-by: nikita15p <[email protected]>
(cherry picked from commit 5dc8c3c)
  • Loading branch information
nikita15p authored and mergify-bot committed Jan 15, 2021
1 parent c648df9 commit 0679e73
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/mesh/v1alpha1/dataplane_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,9 @@ func (d *Dataplane) GetIdentifyingService() string {
}

func (d *Dataplane) IsIngress() bool {
if d.GetNetworking() == nil {
return false
}
return d.Networking.Ingress != nil
}

Expand Down

0 comments on commit 0679e73

Please sign in to comment.