Skip to content

Commit 04fbebe

Browse files
committed
schema: Added OpenAPI schema for 1.28.2
1 parent ae71fcb commit 04fbebe

File tree

61 files changed

+77571
-1092
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+77571
-1092
lines changed

build.gradle

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ def availableSchemaNames = Arrays.asList(
2323
"kubernetes-1.24.4.json",
2424
"kubernetes-1.25.6.json",
2525
"kubernetes-1.26.6.json",
26-
"kubernetes-1.27.3.json"
26+
"kubernetes-1.27.3.json",
27+
"kubernetes-1.28.2.json"
2728
)
2829
def availableSchemas = availableSchemaNames.stream()
2930
.map { s -> new File(schemaDir, s) }

kubernetes-api/src/api/java/com/marcnuri/yakc/api/admissionregistration/v1beta1/AdmissionregistrationV1beta1Api.java

+637-334
Large diffs are not rendered by default.

kubernetes-api/src/api/java/com/marcnuri/yakc/api/authentication/v1/AuthenticationV1Api.java

+73-7
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
import com.marcnuri.yakc.api.Api;
2020
import com.marcnuri.yakc.api.KubernetesCall;
21+
import com.marcnuri.yakc.model.io.k8s.api.authentication.v1.SelfSubjectReview;
2122
import com.marcnuri.yakc.model.io.k8s.api.authentication.v1.TokenReview;
2223
import com.marcnuri.yakc.model.io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList;
2324
import java.util.HashMap;
@@ -35,11 +36,76 @@ public interface AuthenticationV1Api extends Api {
3536
method = "GET",
3637
path = "/apis/authentication.k8s.io/v1/"
3738
)
38-
@Headers({
39+
@Headers({
3940
"Accept: */*"
4041
})
4142
KubernetesCall<APIResourceList> getAPIResources();
4243

44+
/**
45+
* create a SelfSubjectReview
46+
*/
47+
@HTTP(
48+
method = "POST",
49+
path = "/apis/authentication.k8s.io/v1/selfsubjectreviews",
50+
hasBody = true
51+
)
52+
@Headers({
53+
"Content-Type: application/json",
54+
"Accept: */*"
55+
})
56+
KubernetesCall<SelfSubjectReview> createSelfSubjectReview(
57+
@Body SelfSubjectReview body);
58+
59+
/**
60+
* create a SelfSubjectReview
61+
*/
62+
@HTTP(
63+
method = "POST",
64+
path = "/apis/authentication.k8s.io/v1/selfsubjectreviews",
65+
hasBody = true
66+
)
67+
@Headers({
68+
"Content-Type: application/json",
69+
"Accept: */*"
70+
})
71+
KubernetesCall<SelfSubjectReview> createSelfSubjectReview(
72+
@Body SelfSubjectReview body,
73+
@QueryMap CreateSelfSubjectReview queryParameters);
74+
75+
76+
final class CreateSelfSubjectReview extends HashMap<String, Object> {
77+
/**
78+
* When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
79+
*/
80+
public CreateSelfSubjectReview dryRun(String dryRun) {
81+
put("dryRun", dryRun);
82+
return this;
83+
}
84+
85+
/**
86+
* fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
87+
*/
88+
public CreateSelfSubjectReview fieldManager(String fieldManager) {
89+
put("fieldManager", fieldManager);
90+
return this;
91+
}
92+
93+
/**
94+
* fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
95+
*/
96+
public CreateSelfSubjectReview fieldValidation(String fieldValidation) {
97+
put("fieldValidation", fieldValidation);
98+
return this;
99+
}
100+
101+
/**
102+
* If 'true', then the output is pretty printed.
103+
*/
104+
public CreateSelfSubjectReview pretty(String pretty) {
105+
put("pretty", pretty);
106+
return this;
107+
}
108+
}
43109
/**
44110
* create a TokenReview
45111
*/
@@ -48,7 +114,7 @@ public interface AuthenticationV1Api extends Api {
48114
path = "/apis/authentication.k8s.io/v1/tokenreviews",
49115
hasBody = true
50116
)
51-
@Headers({
117+
@Headers({
52118
"Content-Type: application/json",
53119
"Accept: */*"
54120
})
@@ -63,16 +129,16 @@ KubernetesCall<TokenReview> createTokenReview(
63129
path = "/apis/authentication.k8s.io/v1/tokenreviews",
64130
hasBody = true
65131
)
66-
@Headers({
132+
@Headers({
67133
"Content-Type: application/json",
68134
"Accept: */*"
69135
})
70136
KubernetesCall<TokenReview> createTokenReview(
71-
@Body TokenReview body,
137+
@Body TokenReview body,
72138
@QueryMap CreateTokenReview queryParameters);
73139

74-
75-
final class CreateTokenReview extends HashMap<String, Object> {
140+
141+
final class CreateTokenReview extends HashMap<String, Object> {
76142
/**
77143
* When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
78144
*/
@@ -104,5 +170,5 @@ public CreateTokenReview pretty(String pretty) {
104170
put("pretty", pretty);
105171
return this;
106172
}
107-
}
173+
}
108174
}

0 commit comments

Comments
 (0)