-
Notifications
You must be signed in to change notification settings - Fork 54
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
control-service: Cronjob API backwards compatibility #1580
Conversation
...cts/pipelines_control_service/src/main/java/com/vmware/taurus/service/KubernetesService.java
Show resolved
Hide resolved
...cts/pipelines_control_service/src/main/java/com/vmware/taurus/service/KubernetesService.java
Show resolved
Hide resolved
Nice spot! I think it looks really good. However I think it would be soo much better if you are able to test it with an integration test using actual jobs. |
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.
Thanks for fixing this.
is there a Github issue created for this? Can you linked if yes.
If not please create and link it.
I agree about the integration tests. I think we will sleep lighter if we have a something close to end to end test that verifies the use-case of jobs in both new and old versions work.
...cts/pipelines_control_service/src/main/java/com/vmware/taurus/service/KubernetesService.java
Outdated
Show resolved
Hide resolved
...cts/pipelines_control_service/src/main/java/com/vmware/taurus/service/KubernetesService.java
Outdated
Show resolved
Hide resolved
...cts/pipelines_control_service/src/main/java/com/vmware/taurus/service/KubernetesService.java
Outdated
Show resolved
Hide resolved
...cts/pipelines_control_service/src/main/java/com/vmware/taurus/service/KubernetesService.java
Show resolved
Hide resolved
@doks5 I actually think even if beta1 is enabled we should check for v1 jobs. |
387d360
to
0aaa6aa
Compare
Associated Github Issue: #1595 |
I agree that an integration test is necessary for this change, and I have been trying to come up with something for the past few days. However, I don't see a way how to switch the |
@doks5 Now you have one bean that you can use for legacy inserts/update/etc and one for new inserts updates etc.. Please let me know if that isn't clear as I am happy to help. |
This change is blocked by #1612 |
be9f0f0
to
4039ca6
Compare
affbc4f
to
7283ff0
Compare
@tozka, Can you take a look? I believe to have fixed all outstanding issues. |
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.
If you have done any manual testing please include details on what you've exactly done.
Include comment in the Git description on why we decided not to make IT tests (you can include a link to the ticket where we discussed this (if it was in a ticket).
Looks good to me. Thanks for the change.
...cts/pipelines_control_service/src/main/java/com/vmware/taurus/service/KubernetesService.java
Outdated
Show resolved
Hide resolved
...cts/pipelines_control_service/src/main/java/com/vmware/taurus/service/KubernetesService.java
Outdated
Show resolved
Hide resolved
...cts/pipelines_control_service/src/main/java/com/vmware/taurus/service/KubernetesService.java
Outdated
Show resolved
Hide resolved
...cts/pipelines_control_service/src/main/java/com/vmware/taurus/service/KubernetesService.java
Outdated
Show resolved
Hide resolved
...cts/pipelines_control_service/src/main/java/com/vmware/taurus/service/KubernetesService.java
Outdated
Show resolved
Hide resolved
...cts/pipelines_control_service/src/main/java/com/vmware/taurus/service/KubernetesService.java
Outdated
Show resolved
Hide resolved
...cts/pipelines_control_service/src/main/java/com/vmware/taurus/service/KubernetesService.java
Outdated
Show resolved
Hide resolved
...cts/pipelines_control_service/src/main/java/com/vmware/taurus/service/KubernetesService.java
Outdated
Show resolved
Hide resolved
...pipelines_control_service/src/test/java/com/vmware/taurus/service/KubernetesServiceTest.java
Outdated
Show resolved
Hide resolved
3d3a7e1
to
4cff7ee
Compare
Currently there is no backwards compatibility support when a user switches to the V1 Kubernetes Cronjob API (from the currently default V1beta1). This results in situations, where if there are deployed data jobs which use th v1beta1 API, and a switch is made to the V1 API, these jobs are suddenly shown as `NOT DEPLOYED`, and cannot be properly managed. This change adds backwards compatibility support in the Kubernetes Service, to allow for a switch to V1 Cronjob API in clusters, where V1beta1 API cronjobs are deployed. Testing Done: Unit and Integration tests (new and existing). Signed-off-by: Andon Andonov <andonova@vmware.com>
Signed-off-by: Andon Andonov <andonova@vmware.com>
Signed-off-by: Andon Andonov <andonova@vmware.com>
Signed-off-by: Andon Andonov <andonova@vmware.com>
for more information, see https://pre-commit.ci
Signed-off-by: Andon Andonov <andonova@vmware.com>
Signed-off-by: Andon Andonov <andonova@vmware.com>
Signed-off-by: Andon Andonov <andonova@vmware.com>
39c3dcb
to
ab82088
Compare
Currently there is no backwards compatibility support when a user switches to the V1 Kubernetes Cronjob API (from the currently default V1beta1). This results in situations, where if there are deployed data jobs which use the v1beta1 API, and a switch is made to the V1 API, these jobs are suddenly shown as
NOT DEPLOYED
, and cannot be properly managed.This change adds backwards compatibility support in the Kubernetes Service, to allow for a switch to V1 Cronjob API in clusters, where V1beta1 API cronjobs are deployed.
Testing Done: Unit and Integration tests (new and existing).
Signed-off-by: Andon Andonov andonova@vmware.com