Skip to content

Commit

Permalink
Fix nil pointer on delete
Browse files Browse the repository at this point in the history
  • Loading branch information
rmweir committed Jul 7, 2020
1 parent c89c7bc commit 99b63b8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions controller/eks-cluster-config-handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@ func (h *Handler) recordError(onChange func(key string, config *v13.EKSClusterCo
return config, err
}

// EKS config is likely deleting
if config == nil {
return config, err
}

if config.Status.FailureMessage != "" {
configCopy := config.DeepCopy()
configCopy.Status.FailureMessage = ""
Expand Down

0 comments on commit 99b63b8

Please sign in to comment.