-
Notifications
You must be signed in to change notification settings - Fork 159
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
Add support for non restored state on job submission #38
Add support for non restored state on job submission #38
Conversation
SavepointPath: application.Spec.SavepointInfo.SavepointLocation, | ||
EntryClass: entryClass, | ||
ProgramArgs: programArgs, | ||
AllowNonRestoredState: application.Spec.AllowNonRestoredState, |
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.
Add to test that this field is populated.
https://github.com/lyft/flinkk8soperator/blob/master/pkg/controller/flink/flink_test.go#L432
Also you need to run |
@anandswaminathan Appended a check to the existing test, created a new test to make sure |
Great. Thanks @YuvalItzchakov Merging it. You can always use the image on the master - docker.io/lyft/flinkk8soperator:{SHA} and not wait for a release version. |
@YuvalItzchakov This is not the right way to do it. You will have to plumb the flag through the state machine. This case will not work when there is a rollback scenario. You will need to add the flag to the status as well - https://github.com/lyft/flinkk8soperator/blob/master/pkg/controller/flinkapplication/flink_state_machine.go#L366 |
Thanks @anandswaminathan, I’ll get to work on the fix. |
This PR adds support for providing the
--allowNonRestoredState
flag to a submit job request. If, for some reason, that state isn't persistent between versions of a job, the deployment will fail entirely.The addition here adds a
allowNonRestoredState
boolean flag to thecrd.yaml
.