-
Notifications
You must be signed in to change notification settings - Fork 103
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 plan marked as completed when template was broken #519
Conversation
restartPolicy: OnFailure | ||
containers: | ||
- name: bb | ||
image: busybox:latest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These pods are (currently) being created against envtest so no actual containers are able to be created. If there's not a way to write this test without requiring containers to start, I'll setup a KIND environment to run our tests like we do for the operator tests (either, a separate suite or just run everything in KIND).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, this shouldn't render at all, I see :)
labels: | ||
controller-tools.k8s.io: "1.0" | ||
name: invalid-v1 | ||
namespace: default |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Optional: drop the namespace here so it installs cleanly into the test namespace.
…r/kudo into av/fail-plan-on-missing-param
planExecution.Status.State = kudov1alpha1.PhaseStateError | ||
planExecution.Status.Phases[i].State = kudov1alpha1.PhaseStateError | ||
// returning error = nil so that we don't retry since this is non-recoverable | ||
return reconcile.Result{}, nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to update the API object here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What type of PR is this?
/kind bug
What this PR does / why we need it:
Fixes behavior when error in template caused plans to be marked as complete instead of error.
Which issue(s) this PR fixes:
Fixes #499
Special notes for your reviewer:
Does this PR introduce a user-facing change?: