Skip to content

Commit

Permalink
Fix the detection of unknown k8s errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Guerra authored and aguerra committed Aug 22, 2018
1 parent b18f16c commit d4452e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/server/k8s/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ func (k *Client) IsInvalid(err error) bool {
}

func (k *Client) IsUnknown(err error) bool {
_, ok := err.(k8serrors.APIStatus)
_, ok := errors.Cause(err).(k8serrors.APIStatus)
return !ok
}

0 comments on commit d4452e2

Please sign in to comment.