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.
Loading
Please register or sign in to comment