Skip to content

Commit

Permalink
check for nil (#211)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmazzitelli authored and jshaughn committed May 24, 2018
1 parent 5c74240 commit 2a68351
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions graph/appender/sidecars_check.go
Expand Up @@ -31,8 +31,10 @@ func (a SidecarsCheckAppender) applySidecarsChecks(n *tree.ServiceNode, namespac
nameValidations := (*typeValidations)["pod"]

sidecarsOk := true
for _, check := range *nameValidations {
sidecarsOk = sidecarsOk && check.Valid
if nameValidations != nil {
for _, check := range *nameValidations {
sidecarsOk = sidecarsOk && check.Valid
}
}
n.Metadata["hasMissingSidecars"] = !sidecarsOk

Expand Down

0 comments on commit 2a68351

Please sign in to comment.