Skip to content

Commit

Permalink
chore (kubernetes-model-generator) : Upgrade Fabric8 Kubernetes Model…
Browse files Browse the repository at this point in the history
… to Kubernetes v1.26 (fabric8io#4655)

+ Upgrade Fabric8 Kubernetes Model to Kubernetes v1.26.0
+ Add `admissionregistration.k8s.io/v1alpha1` ValidatingAdmissionPolicy
  and ValidatingAdmissionPolicyBinding resources
+ Add `authentication.k8s.io/v1alpha1` SelfSubjectReview
+ Add new module `kubernetes-model-resource` for
  `resource.k8s.io/v1alpha1` apiGroup
+ Add `flowcontrol.apiserver.k8s.io/v1beta3` FlowSchema and PriorityLevelConfiguration

Signed-off-by: Rohan Kumar <rohaan@redhat.com>
  • Loading branch information
rohanKanojia committed Feb 2, 2023
1 parent f498488 commit d8a19b1
Show file tree
Hide file tree
Showing 216 changed files with 25,200 additions and 2,914 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* Fix #4795: don't print warning message when service account token property is unset

#### Dependency Upgrade
* Fix #4655: Upgrade Fabric8 Kubernetes Model to Kubernetes v1.26.0

#### New Features

Expand Down
4 changes: 4 additions & 0 deletions kubernetes-client-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@
<groupId>io.fabric8</groupId>
<artifactId>kubernetes-model-gatewayapi</artifactId>
</dependency>
<dependency>
<groupId>io.fabric8</groupId>
<artifactId>kubernetes-model-resource</artifactId>
</dependency>
<dependency>
<groupId>io.fabric8</groupId>
<artifactId>kubernetes-model-rbac</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,6 @@ public interface AdmissionRegistrationAPIGroupDSL extends Client {
V1AdmissionRegistrationAPIGroupDSL v1();

V1beta1AdmissionRegistrationAPIGroupDSL v1beta1();

V1Alpha1AdmissionRegistrationAPIGroupDSL v1alpha1();
}
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,13 @@
import io.fabric8.kubernetes.api.model.node.v1beta1.RuntimeClassList;
import io.fabric8.kubernetes.client.dsl.ApiextensionsAPIGroupDSL;
import io.fabric8.kubernetes.client.dsl.AppsAPIGroupDSL;
import io.fabric8.kubernetes.client.dsl.AuthenticationAPIGroupDSL;
import io.fabric8.kubernetes.client.dsl.AuthorizationAPIGroupDSL;
import io.fabric8.kubernetes.client.dsl.AutoscalingAPIGroupDSL;
import io.fabric8.kubernetes.client.dsl.BatchAPIGroupDSL;
import io.fabric8.kubernetes.client.dsl.CertificatesAPIGroupDSL;
import io.fabric8.kubernetes.client.dsl.DiscoveryAPIGroupDSL;
import io.fabric8.kubernetes.client.dsl.DynamicResourceAllocationAPIGroupDSL;
import io.fabric8.kubernetes.client.dsl.EventingAPIGroupDSL;
import io.fabric8.kubernetes.client.dsl.ExtensionsAPIGroupDSL;
import io.fabric8.kubernetes.client.dsl.FlowControlAPIGroupDSL;
Expand Down Expand Up @@ -169,6 +171,13 @@ MixedOperation<GenericKubernetesResource, GenericKubernetesResourceList, Resourc
*/
DiscoveryAPIGroupDSL discovery();

/**
* API entrypoint for dynamic resource allocation <code>resource.k8s.io</code>
*
* @return {@link DynamicResourceAllocationAPIGroupDSL} with which you can access various types provided by this API.
*/
DynamicResourceAllocationAPIGroupDSL dynamicResourceAllocation();

/**
* Event API entrypoint for APIGroup events.k8s.io
*
Expand Down Expand Up @@ -466,6 +475,13 @@ NamespaceListVisitFromServerGetDeleteRecreateWaitApplicable<HasMetadata> resourc
*/
AuthorizationAPIGroupDSL authorization();

/**
* Authentication operations (authentication.k8s.io)
*
* @return {@link AuthenticationAPIGroupDSL} object for dealing with Authentication objects
*/
AuthenticationAPIGroupDSL authentication();

/**
* API for creating authentication.k8s.io/v1 TokenReviews
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,13 @@
import io.fabric8.kubernetes.api.model.node.v1beta1.RuntimeClassList;
import io.fabric8.kubernetes.client.dsl.ApiextensionsAPIGroupDSL;
import io.fabric8.kubernetes.client.dsl.AppsAPIGroupDSL;
import io.fabric8.kubernetes.client.dsl.AuthenticationAPIGroupDSL;
import io.fabric8.kubernetes.client.dsl.AuthorizationAPIGroupDSL;
import io.fabric8.kubernetes.client.dsl.AutoscalingAPIGroupDSL;
import io.fabric8.kubernetes.client.dsl.BatchAPIGroupDSL;
import io.fabric8.kubernetes.client.dsl.CertificatesAPIGroupDSL;
import io.fabric8.kubernetes.client.dsl.DiscoveryAPIGroupDSL;
import io.fabric8.kubernetes.client.dsl.DynamicResourceAllocationAPIGroupDSL;
import io.fabric8.kubernetes.client.dsl.EventingAPIGroupDSL;
import io.fabric8.kubernetes.client.dsl.ExtensionsAPIGroupDSL;
import io.fabric8.kubernetes.client.dsl.FlowControlAPIGroupDSL;
Expand Down Expand Up @@ -167,6 +169,11 @@ public DiscoveryAPIGroupDSL discovery() {
return getClient().discovery();
}

@Override
public DynamicResourceAllocationAPIGroupDSL dynamicResourceAllocation() {
return getClient().dynamicResourceAllocation();
}

@Override
public EventingAPIGroupDSL events() {
return getClient().events();
Expand Down Expand Up @@ -368,6 +375,11 @@ public AuthorizationAPIGroupDSL authorization() {
return getClient().authorization();
}

@Override
public AuthenticationAPIGroupDSL authentication() {
return getClient().authentication();
}

@Override
public InOutCreateable<TokenReview, TokenReview> tokenReviews() {
return getClient().tokenReviews();
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/**
* Copyright (C) 2015 Red Hat, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.fabric8.kubernetes.client;

import io.fabric8.kubernetes.api.model.admissionregistration.v1alpha1.ValidatingAdmissionPolicy;
import io.fabric8.kubernetes.api.model.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBinding;
import io.fabric8.kubernetes.api.model.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBindingList;
import io.fabric8.kubernetes.api.model.admissionregistration.v1alpha1.ValidatingAdmissionPolicyList;
import io.fabric8.kubernetes.client.dsl.NonNamespaceOperation;
import io.fabric8.kubernetes.client.dsl.Resource;

public interface V1Alpha1AdmissionRegistrationAPIGroupDSL extends Client {
/**
* API entrypoint for admissionregistration.k8s.io/v1alpha1 ValidatingAdmissionPolicy
*
* @return NonNamespaceOperation for ValidatingAdmissionPolicy
*/
NonNamespaceOperation<ValidatingAdmissionPolicy, ValidatingAdmissionPolicyList, Resource<ValidatingAdmissionPolicy>> validatingAdmissionPolicies();

/**
* API entrypoint for admissionregistration.k8s.io/v1alpha1 ValidatingAdmissionPolicyBinding
*
* @return NonNamespaceOperation for ValidatingAdmissionPolicyBinding
*/
NonNamespaceOperation<ValidatingAdmissionPolicyBinding, ValidatingAdmissionPolicyBindingList, Resource<ValidatingAdmissionPolicyBinding>> validatingAdmissionPolicyBindings();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
/**
* Copyright (C) 2015 Red Hat, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.fabric8.kubernetes.client;

import io.fabric8.kubernetes.api.model.resource.v1alpha1.PodScheduling;
import io.fabric8.kubernetes.api.model.resource.v1alpha1.PodSchedulingList;
import io.fabric8.kubernetes.api.model.resource.v1alpha1.ResourceClaim;
import io.fabric8.kubernetes.api.model.resource.v1alpha1.ResourceClaimList;
import io.fabric8.kubernetes.api.model.resource.v1alpha1.ResourceClaimTemplate;
import io.fabric8.kubernetes.api.model.resource.v1alpha1.ResourceClaimTemplateList;
import io.fabric8.kubernetes.api.model.resource.v1alpha1.ResourceClass;
import io.fabric8.kubernetes.api.model.resource.v1alpha1.ResourceClassList;
import io.fabric8.kubernetes.client.dsl.MixedOperation;
import io.fabric8.kubernetes.client.dsl.NonNamespaceOperation;
import io.fabric8.kubernetes.client.dsl.Resource;

public interface V1Alpha1DynamicResourceAllocationAPIGroupDSL extends Client {
/**
* API entrypoint for resource.k8s.io/v1alpha1 ResourceClass
*
* @return {@link NonNamespaceOperation} for ResourceClass
*/
NonNamespaceOperation<ResourceClass, ResourceClassList, Resource<ResourceClass>> resourceClasses();

/**
* API entrypoint for resource.k8s.io/v1alpha1 PodScheduling
*
* @return {@link MixedOperation} for PodScheduling
*/
MixedOperation<PodScheduling, PodSchedulingList, Resource<PodScheduling>> podSchedulings();

/**
* API entrypoint for resource.k8s.io/v1alpha1 ResourceClaim
*
* @return {@link MixedOperation} for ResourceClaim
*/
MixedOperation<ResourceClaim, ResourceClaimList, Resource<ResourceClaim>> resourceClaims();

/**
* API entrypoint for resource.k8s.io/v1alpha1 ResourceClaimTemplate
*
* @return {@link MixedOperation} for ResourceClaimTemplate
*/
MixedOperation<ResourceClaimTemplate, ResourceClaimTemplateList, Resource<ResourceClaimTemplate>> resourceClaimTemplates();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/**
* Copyright (C) 2015 Red Hat, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.fabric8.kubernetes.client;

import io.fabric8.kubernetes.api.model.authentication.TokenReview;
import io.fabric8.kubernetes.client.dsl.InOutCreateable;

public interface V1AuthenticationAPIGroupDSL extends Client {
/**
* API for creating authentication.k8s.io/v1 TokenReviews
*
* @return InOutCreateable instance for creating TokenReview object
*/
InOutCreateable<TokenReview, TokenReview> tokenReviews();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/**
* Copyright (C) 2015 Red Hat, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.fabric8.kubernetes.client.dsl;

import io.fabric8.kubernetes.client.Client;
import io.fabric8.kubernetes.client.V1AuthenticationAPIGroupDSL;

public interface AuthenticationAPIGroupDSL extends Client {
V1AuthenticationAPIGroupDSL v1();

V1Alpha1AuthenticationAPIGroupDSL v1alpha1();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/**
* Copyright (C) 2015 Red Hat, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.fabric8.kubernetes.client.dsl;

import io.fabric8.kubernetes.client.Client;
import io.fabric8.kubernetes.client.V1Alpha1DynamicResourceAllocationAPIGroupDSL;

public interface DynamicResourceAllocationAPIGroupDSL extends Client {
V1Alpha1DynamicResourceAllocationAPIGroupDSL v1alpha1();
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,6 @@ public interface FlowControlAPIGroupDSL extends Client {
V1beta1FlowControlAPIGroupDSL v1beta1();

V1beta2FlowControlAPIGroupDSL v1beta2();

V1beta3FlowControlAPIGroupDSL v1beta3();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/**
* Copyright (C) 2015 Red Hat, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.fabric8.kubernetes.client.dsl;

import io.fabric8.kubernetes.api.model.authentication.v1alpha1.SelfSubjectReview;
import io.fabric8.kubernetes.client.Client;

public interface V1Alpha1AuthenticationAPIGroupDSL extends Client {
/**
* API for creating authentication.k8s.io/v1alpha1 SelfSubjectReview.
*
* SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request.
* When using impersonation, users will receive the user info of the user being impersonated.
*
* @return InOutCreateable instance for creating SelfSubjectReview object
*/
InOutCreateable<SelfSubjectReview, SelfSubjectReview> selfSubjectReview();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/**
* Copyright (C) 2015 Red Hat, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.fabric8.kubernetes.client.dsl;

import io.fabric8.kubernetes.api.model.flowcontrol.v1beta3.FlowSchema;
import io.fabric8.kubernetes.api.model.flowcontrol.v1beta3.FlowSchemaList;
import io.fabric8.kubernetes.api.model.flowcontrol.v1beta3.PriorityLevelConfiguration;
import io.fabric8.kubernetes.api.model.flowcontrol.v1beta3.PriorityLevelConfigurationList;
import io.fabric8.kubernetes.client.Client;

public interface V1beta3FlowControlAPIGroupDSL extends Client {
/**
* DSL entrypoint for flowcontrol.apiserver.k8s.io/v1beta3 FlowSchema
*
* @return {@link NonNamespaceOperation} for FlowSchema resource
*/
NonNamespaceOperation<FlowSchema, FlowSchemaList, Resource<FlowSchema>> flowSchema();

/**
* DSL entrypoint for flowcontrol.apiserver.k8s.io/v1beta3 PriorityLevelConfiguration
*
* @return {@link NonNamespaceOperation} for PriorityLevelConfiguration resource
*/
NonNamespaceOperation<PriorityLevelConfiguration, PriorityLevelConfigurationList, Resource<PriorityLevelConfiguration>> priorityLevelConfigurations();
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

import io.fabric8.kubernetes.client.AdmissionRegistrationAPIGroupDSL;
import io.fabric8.kubernetes.client.V1AdmissionRegistrationAPIGroupDSL;
import io.fabric8.kubernetes.client.V1Alpha1AdmissionRegistrationAPIGroupDSL;
import io.fabric8.kubernetes.client.V1beta1AdmissionRegistrationAPIGroupDSL;
import io.fabric8.kubernetes.client.extension.ClientAdapter;

Expand All @@ -33,6 +34,11 @@ public V1beta1AdmissionRegistrationAPIGroupDSL v1beta1() {
return adapt(V1beta1AdmissionRegistrationAPIGroupClient.class);
}

@Override
public V1Alpha1AdmissionRegistrationAPIGroupDSL v1alpha1() {
return adapt(V1Alpha1AdmissionRegistrationAPIGroupClient.class);
}

@Override
public AdmissionRegistrationAPIGroupClient newInstance() {
return new AdmissionRegistrationAPIGroupClient();
Expand Down
Loading

0 comments on commit d8a19b1

Please sign in to comment.