Skip to content
Unverified Commit 412f6011 authored by Ankit R Gadiya's avatar Ankit R Gadiya
Browse files

fix: checking the underlying error

The create function wraps errors which causes Kubernetes error
functions to not detect the specific types of errors. This commit
fixes it by checking the underlying error instead of error directly.

Also, all calls were calling update (even with successful
create). This commit adds a check for only those where create failed
with IsAlreadyExists error will it call update.
parent 9bce3ace
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment