-
Notifications
You must be signed in to change notification settings - Fork 350
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(#3393): Update to CronJob batch/v1 #3402
Conversation
CronJob batch/v1beta1 is deprecated and will be removed soon. Updating to batch/v1 API
@squakez maybe respin the failed openshift workflow job? |
I doubt the |
+1 for making it optional beside that, should we really keep support for OpenShift 3 |
@astefanutti oh, I was not even looking at the failed workflow job error and thought it to be a flaky test run. many thanks! let me see what it takes to make this optional. I think it is not only the trait that is using the CronJob API. I saw references to this all over the place. |
I think we are ready to remove OpenShift 3 support. The workflow is kept only because right now
A short while ago we restored stability in our test suite. Now there shouldn't be so many flaky tests, so let's keep an eye on it and try not to introduce more failing tests.
We can also disable E2E tests for CronJob when they run on OpenShift 3, just like this: |
Skipping the test won't solve the problem happening at runtime in Openshift 3. If we want to support OC3 then we need a different strategy (ie, creating a CronJobStrategy type and using the old dependencies when we detect OC3, or new dependencies otherwise). However it's too much hassle in my opinion. Any reason why we don't want to drop OC3 support and make it easier? |
1b0b0cb
to
bfc512f
Compare
I'm fine with dropping OC3 support. It's just that if we remove the |
I think the only reason to keep OpenShift 3.x support is for developers (and our GitHub actions CI) running on Minishift |
We dropped Minishift support a while ago. What's running in the |
@christophd can we get this into 1.8.x and 1.9.x too? |
d4dfc48
to
958c23d
Compare
- Explicitly check for CronJob batch/v1 API availability before using it - CronJob batch/v1 API is not available on OpenShift 3.x - Disable cron job e2e test on OpenShift 3.x
958c23d
to
9e6d3f4
Compare
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.
LTGM!
@lburgazzoli @squakez @tadayosi we finally managed to make the CronJob functionality optional and only use it when the Are we good to merge? |
fine with me |
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.
Awesome, thank you!
@christophd While this still passes CI there is an assertion failure here: |
CronJob batch/v1beta1 is deprecated and will be removed soon. Updating to batch/v1 API
Fixes #3393
Fixes #2408
Release Note