-
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
Update Kubernetes Model to v1.21.0 #2979
Update Kubernetes Model to v1.21.0 #2979
Conversation
73e8fda
to
74e8d9f
Compare
public MixedOperation<Job, JobList, ScalableResource<Job>> jobs() { | ||
return new JobOperationsImpl(httpClient, getConfiguration()); | ||
public V1BatchAPIGroupDSL v1() { | ||
return adapt(V1BatchAPIGroupClient.class); | ||
} | ||
|
||
@Override | ||
public MixedOperation<CronJob, CronJobList, Resource<CronJob>> cronjobs() { | ||
return new CronJobOperationsImpl(httpClient, getConfiguration()); |
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.
Could we keep this as @Deprecated+@deprecated
and point to the old V1beta1BatchAPIGroupClient
cronjobs and jobs?
This way changes won't be that breaking.
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.
I don't know how you reverted these changes, but you reverted the examples too (not sure if that was on purpose).
I do think that examples should use the new non-deprecated APIs
public MixedOperation<PodDisruptionBudget, PodDisruptionBudgetList, Resource<PodDisruptionBudget>> podDisruptionBudget() { | ||
return new PodDisruptionBudgetOperationsImpl(httpClient, getConfiguration()); | ||
public V1beta1PolicyAPIGroupDSL v1beta1() { | ||
return adapt(V1beta1PolicyAPIGroupClient.class); | ||
} |
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.
420e0cc
to
926ba43
Compare
+ Update Kubernetes Model Schema as per Kubernetes v1.21.0
+ Added `client.batch().v1()` and `client.batch().v1beta1()` DSL + Added `client.policy().v1()` and `client.policy().v1beta1()` DSL + Added `client.discovery.v1()` DSL
This commit reverts removal of the following DSLs: - `client.batch().jobs()` - `client.batch().cronjobs()` - `client.policy().podSecurityPolicies()` - `client.policy().podDisruptionBudget()`
926ba43
to
9e50cf4
Compare
SonarCloud Quality Gate failed. |
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.
LGTM, thx!
Description
https://kubernetes.io/blog/2021/04/08/kubernetes-1-21-release-announcement/
DSL Changes:
client.batch().jobs()
deprecatedclient.batch().cronjobs()
deprecatedclient.policy().podSecurityPolicies()
deprecatedclient.policy().podDisruptionBudget()
deprecatedModel Changes:
io.fabric8.kubernetes.api.model.batch
have been moved toio.fabric8.kubernetes.api.model.batch.v1
andio.fabric8.kubernetes.api.model.batch.v1beta1
io.fabric8.kubernetes.api.model.policy
have been moved toio.fabric8.kubernetes.api.model.policy.v1
andio.fabric8.kubernetes.api.model.policy.v1beta1
io.fabric8.kubernetes.api.model.discovery.v1
EndpointSliceType of change
test, version modification, documentation, etc.)
Checklist