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 KUDO step object deletion logic #551

Merged
merged 4 commits into from
Jul 11, 2019

Conversation

jbarrick-mesosphere
Copy link
Member

What type of PR is this?
/kind bug

What this PR does / why we need it:

The PlanExecution controller always returned an error when an object did not exist causing the PlanExecution to never complete.

This fixes the conditional logic so that errors for an object being deleted already are suppressed properly.

Does this PR introduce a user-facing change?:

Fix deletion of objects in KUDO steps.

The PlanExecution controller always returned an error when an object did not exist causing the PlanExecution to never complete.

This fixes the conditional logic so that errors for an object being deleted already are suppressed properly.
@@ -463,8 +463,7 @@ func (r *ReconcilePlanExecution) Reconcile(request reconcile.Request) (reconcile
if errors.IsNotFound(err) || err == nil {
// This is okay
log.Printf("PlanExecutionController: Object was already deleted or did not exist in step \"%v\"", s.Name)
}
if err != nil {
} else {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

haha good one :)

Copy link
Member

@kensipe kensipe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@kensipe kensipe merged commit 9cf796b into kudobuilder:master Jul 11, 2019
kensipe pushed a commit that referenced this pull request Jul 11, 2019
The PlanExecution controller always returned an error when an object did not exist causing the PlanExecution to never complete.

This fixes the conditional logic so that errors for an object being deleted already are suppressed properly.
@jbarrick-mesosphere jbarrick-mesosphere added this to the v0.4.0 milestone Jul 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants