Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some error paths in the controller #197

Merged
merged 2 commits into from
Jun 3, 2022

Commits on Jun 3, 2022

  1. Fix createScc() error path

    Errors from Client.Get() other than IsNotFound are silently ignored
    instead of being propagated to the caller. Reorganize the code a bit
    and add the missing error path.
    
    Fixes: d8620dc ("Create SCC on KataConfig creation")
    Signed-off-by: Greg Kurz <groug@kaod.org>
    gkurz committed Jun 3, 2022
    Configuration menu
    Copy the full SHA
    9b03aab View commit details
    Browse the repository at this point in the history
  2. Fix createRuntimeClass() error path

    Errors from Client.Get() other than IsNotFound are silently ignored
    instead of being propagated to the caller. Reorganize the code a bit
    and add the missing error path.
    
    Signed-off-by: Greg Kurz <groug@kaod.org>
    gkurz committed Jun 3, 2022
    Configuration menu
    Copy the full SHA
    9e34372 View commit details
    Browse the repository at this point in the history