rancher / kim

In ur kubernetes, buildin ur imagez
Apache License 2.0
326 stars 19 forks source link

fix agent crash when removing invalid image #83

Closed dweomer closed 2 years ago

dweomer commented 2 years ago

The client attempts to "noramlize" image refs when deleting to allow for shortened image identifiers to be passed. When passing an invalid image ref this could result in the client requesting deletion of a nil image from the server. The server now silently succeed and do nothing while the client now checks for passing a nil image ref and lets the user know that no such image could be found.

Fixes #80

Signed-off-by: Jacob Blain Christen jacob@rancher.com