-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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 #3326: Update Kubernetes Model to Kubernetes v1.22.1 #3452
Fix #3326: Update Kubernetes Model to Kubernetes v1.22.1 #3452
Conversation
68b0191
to
d24d2af
Compare
642bfaf
to
cb9e01b
Compare
Did you check you added every new API? I don't see anything related to: |
I'm not able to see any api resource named Eviction when I do |
Eviction is not a new resource, is the type to represent the request body for:
|
cb9e01b
to
fc3fc4d
Compare
Right now we do have support for Pod eviction via B evict(io.fabric8.kubernetes.api.model.policy.v1.Eviction eviction); |
Tests seem to be failing since we don't have support for policy/v1 Eviction in Kubernetes versions < 1.22.1 . Shall I remove integration test regarding policy/v1 Eviction or shall I try adding Kubernetes 1.22 in CI suite and only run eviction test there? |
The latter (add new CI suite and run test only in 1.22) |
kubernetes-client/src/main/java/io/fabric8/kubernetes/client/dsl/base/OperationSupport.java
Outdated
Show resolved
Hide resolved
...lient/src/main/java/io/fabric8/kubernetes/client/dsl/internal/core/v1/PodOperationsImpl.java
Show resolved
Hide resolved
00401de
to
1f48d83
Compare
34e796b
to
39b3288
Compare
Signed-off-by: Rohan Kumar <rohaan@redhat.com>
Signed-off-by: Rohan Kumar <rohaan@redhat.com>
Signed-off-by: Rohan Kumar <rohaan@redhat.com>
Signed-off-by: Rohan Kumar <rohaan@redhat.com>
policy/v1 Eviction was introduced in Kubernetes 1.22.1 . There was already some work done for eviction API in fabric8io#2249 Right now, we have an evict() DSL method which builds up policy/v1beta1 Eviction objecti internally. Adding evict(io.fabric8.kubernetes.api.model.policy.v1.Eviction) method to Evictable interface in order to allow use of policy/v1 Eviction. Signed-off-by: Rohan Kumar <rohaan@redhat.com>
Signed-off-by: Rohan Kumar <rohaan@redhat.com>
39b3288
to
dada187
Compare
SonarCloud Quality Gate failed. |
Description
Fix #3326
Signed-off-by: Rohan Kumar rohaan@redhat.com
Type of change
test, version modification, documentation, etc.)
Checklist