-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
schema: Added OpenAPI schema for 1.30.0
- Loading branch information
Showing
80 changed files
with
92,735 additions
and
1,395 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2,405 changes: 2,187 additions & 218 deletions
2,405
...c/api/java/com/marcnuri/yakc/api/admissionregistration/v1/AdmissionregistrationV1Api.java
Large diffs are not rendered by default.
Oops, something went wrong.
5,547 changes: 4,391 additions & 1,156 deletions
5,547
kubernetes-api/src/api/java/com/marcnuri/yakc/api/resource/v1alpha2/ResourceV1alpha2Api.java
Large diffs are not rendered by default.
Oops, something went wrong.
39 changes: 39 additions & 0 deletions
39
kubernetes-api/src/api/java/com/marcnuri/yakc/api/storagemigration/StoragemigrationApi.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* | ||
* Copyright 2020 Marc Nuri | ||
* | ||
* 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 com.marcnuri.yakc.api.storagemigration; | ||
|
||
import com.marcnuri.yakc.api.Api; | ||
import com.marcnuri.yakc.api.KubernetesCall; | ||
import com.marcnuri.yakc.model.io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup; | ||
import retrofit2.http.HTTP; | ||
import retrofit2.http.Headers; | ||
|
||
@SuppressWarnings({"squid:S1192", "unused"}) | ||
public interface StoragemigrationApi extends Api { | ||
/** | ||
* get information of a group | ||
*/ | ||
@HTTP( | ||
method = "GET", | ||
path = "/apis/storagemigration.k8s.io/" | ||
) | ||
@Headers({ | ||
"Accept: */*" | ||
}) | ||
KubernetesCall<APIGroup> getAPIGroup(); | ||
|
||
} |
1,127 changes: 1,127 additions & 0 deletions
1,127
...api/java/com/marcnuri/yakc/api/storagemigration/v1alpha1/StoragemigrationV1alpha1Api.java
Large diffs are not rendered by default.
Oops, something went wrong.
55 changes: 55 additions & 0 deletions
55
...del/java/com/marcnuri/yakc/model/io/k8s/api/admissionregistration/v1/AuditAnnotation.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
/* | ||
* Copyright 2020 Marc Nuri | ||
* | ||
* 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 com.marcnuri.yakc.model.io.k8s.api.admissionregistration.v1; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.marcnuri.yakc.model.Model; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
import lombok.NonNull; | ||
import lombok.ToString; | ||
|
||
/** | ||
* AuditAnnotation describes how to produce an audit annotation for an API request. | ||
*/ | ||
@SuppressWarnings({"squid:S1192", "WeakerAccess", "unused"}) | ||
@Builder(toBuilder = true, builderClassName = "Builder") | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
@Data | ||
@ToString | ||
public class AuditAnnotation implements Model { | ||
|
||
|
||
/** | ||
* key specifies the audit annotation key. The audit annotation keys of a ValidatingAdmissionPolicy must be unique. The key must be a qualified name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length.<br><p> <br><p> The key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: "{ValidatingAdmissionPolicy name}/{key}".<br><p> <br><p> If an admission webhook uses the same resource name as this ValidatingAdmissionPolicy and the same audit annotation key, the annotation key will be identical. In this case, the first annotation written with the key will be included in the audit event and all subsequent annotations with the same key will be discarded.<br><p> <br><p> Required. | ||
*/ | ||
@NonNull | ||
@JsonProperty("key") | ||
private String key; | ||
|
||
/** | ||
* valueExpression represents the expression which is evaluated by CEL to produce an audit annotation value. The expression must evaluate to either a string or null value. If the expression evaluates to a string, the audit annotation is included with the string value. If the expression evaluates to null or empty string the audit annotation will be omitted. The valueExpression may be no longer than 5kb in length. If the result of the valueExpression is more than 10kb in length, it will be truncated to 10kb.<br><p> <br><p> If multiple ValidatingAdmissionPolicyBinding resources match an API request, then the valueExpression will be evaluated for each binding. All unique values produced by the valueExpressions will be joined together in a comma-separated list.<br><p> <br><p> Required. | ||
*/ | ||
@NonNull | ||
@JsonProperty("valueExpression") | ||
private String valueExpression; | ||
|
||
} | ||
|
55 changes: 55 additions & 0 deletions
55
...l/java/com/marcnuri/yakc/model/io/k8s/api/admissionregistration/v1/ExpressionWarning.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
/* | ||
* Copyright 2020 Marc Nuri | ||
* | ||
* 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 com.marcnuri.yakc.model.io.k8s.api.admissionregistration.v1; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.marcnuri.yakc.model.Model; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
import lombok.NonNull; | ||
import lombok.ToString; | ||
|
||
/** | ||
* ExpressionWarning is a warning information that targets a specific expression. | ||
*/ | ||
@SuppressWarnings({"squid:S1192", "WeakerAccess", "unused"}) | ||
@Builder(toBuilder = true, builderClassName = "Builder") | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
@Data | ||
@ToString | ||
public class ExpressionWarning implements Model { | ||
|
||
|
||
/** | ||
* The path to the field that refers the expression. For example, the reference to the expression of the first item of validations is "spec.validations[0].expression" | ||
*/ | ||
@NonNull | ||
@JsonProperty("fieldRef") | ||
private String fieldRef; | ||
|
||
/** | ||
* The content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler. | ||
*/ | ||
@NonNull | ||
@JsonProperty("warning") | ||
private String warning; | ||
|
||
} | ||
|
69 changes: 69 additions & 0 deletions
69
...odel/java/com/marcnuri/yakc/model/io/k8s/api/admissionregistration/v1/MatchResources.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
/* | ||
* Copyright 2020 Marc Nuri | ||
* | ||
* 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 com.marcnuri.yakc.model.io.k8s.api.admissionregistration.v1; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.marcnuri.yakc.model.Model; | ||
import com.marcnuri.yakc.model.io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector; | ||
import java.util.List; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
import lombok.Singular; | ||
import lombok.ToString; | ||
|
||
/** | ||
* MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded) | ||
*/ | ||
@SuppressWarnings({"squid:S1192", "WeakerAccess", "unused"}) | ||
@Builder(toBuilder = true, builderClassName = "Builder") | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
@Data | ||
@ToString | ||
public class MatchResources implements Model { | ||
|
||
|
||
/** | ||
* ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded) | ||
*/ | ||
@JsonProperty("excludeResourceRules") | ||
@Singular(value = "addToExcludeResourceRules", ignoreNullCollections = true) | ||
private List<NamedRuleWithOperations> excludeResourceRules; | ||
|
||
/** | ||
* matchPolicy defines how the "MatchResources" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent".<br><p> <br><p> - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.<br><p> <br><p> - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.<br><p> <br><p> Defaults to "Equivalent" | ||
*/ | ||
@JsonProperty("matchPolicy") | ||
private String matchPolicy; | ||
|
||
@JsonProperty("namespaceSelector") | ||
private LabelSelector namespaceSelector; | ||
|
||
@JsonProperty("objectSelector") | ||
private LabelSelector objectSelector; | ||
|
||
/** | ||
* ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule. | ||
*/ | ||
@JsonProperty("resourceRules") | ||
@Singular(value = "addToResourceRules", ignoreNullCollections = true) | ||
private List<NamedRuleWithOperations> resourceRules; | ||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
83 changes: 83 additions & 0 deletions
83
.../com/marcnuri/yakc/model/io/k8s/api/admissionregistration/v1/NamedRuleWithOperations.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
/* | ||
* Copyright 2020 Marc Nuri | ||
* | ||
* 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 com.marcnuri.yakc.model.io.k8s.api.admissionregistration.v1; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.marcnuri.yakc.model.Model; | ||
import java.util.List; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
import lombok.Singular; | ||
import lombok.ToString; | ||
|
||
/** | ||
* NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames. | ||
*/ | ||
@SuppressWarnings({"squid:S1192", "WeakerAccess", "unused"}) | ||
@Builder(toBuilder = true, builderClassName = "Builder") | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
@Data | ||
@ToString | ||
public class NamedRuleWithOperations implements Model { | ||
|
||
|
||
/** | ||
* APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. | ||
*/ | ||
@JsonProperty("apiGroups") | ||
@Singular(value = "addToApiGroups", ignoreNullCollections = true) | ||
private List<String> apiGroups; | ||
|
||
/** | ||
* APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. | ||
*/ | ||
@JsonProperty("apiVersions") | ||
@Singular(value = "addToApiVersions", ignoreNullCollections = true) | ||
private List<String> apiVersions; | ||
|
||
/** | ||
* Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required. | ||
*/ | ||
@JsonProperty("operations") | ||
@Singular(value = "addToOperations", ignoreNullCollections = true) | ||
private List<String> operations; | ||
|
||
/** | ||
* ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. | ||
*/ | ||
@JsonProperty("resourceNames") | ||
@Singular(value = "addToResourceNames", ignoreNullCollections = true) | ||
private List<String> resourceNames; | ||
|
||
/** | ||
* Resources is a list of resources this rule applies to.<br><p> <br><p> For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources.<br><p> <br><p> If wildcard is present, the validation rule will ensure resources do not overlap with each other.<br><p> <br><p> Depending on the enclosing object, subresources might not be allowed. Required. | ||
*/ | ||
@JsonProperty("resources") | ||
@Singular(value = "addToResources", ignoreNullCollections = true) | ||
private List<String> resources; | ||
|
||
/** | ||
* scope specifies the scope of this rule. Valid values are "Cluster", "Namespaced", and "*" "Cluster" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. "Namespaced" means that only namespaced resources will match this rule. "*" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is "*". | ||
*/ | ||
@JsonProperty("scope") | ||
private String scope; | ||
|
||
} | ||
|
52 changes: 52 additions & 0 deletions
52
...src/model/java/com/marcnuri/yakc/model/io/k8s/api/admissionregistration/v1/ParamKind.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/* | ||
* Copyright 2020 Marc Nuri | ||
* | ||
* 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 com.marcnuri.yakc.model.io.k8s.api.admissionregistration.v1; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.marcnuri.yakc.model.Model; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
import lombok.ToString; | ||
|
||
/** | ||
* ParamKind is a tuple of Group Kind and Version. | ||
*/ | ||
@SuppressWarnings({"squid:S1192", "WeakerAccess", "unused"}) | ||
@Builder(toBuilder = true, builderClassName = "Builder") | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
@Data | ||
@ToString | ||
public class ParamKind implements Model { | ||
|
||
|
||
/** | ||
* APIVersion is the API group version the resources belong to. In format of "group/version". Required. | ||
*/ | ||
@JsonProperty("apiVersion") | ||
private String apiVersion; | ||
|
||
/** | ||
* Kind is the API kind the resources belong to. Required. | ||
*/ | ||
@JsonProperty("kind") | ||
private String kind; | ||
|
||
} | ||
|
Oops, something went wrong.