Skip to content

Commit 13740ae

Browse files
authored
Merge pull request #510 from brendandburns/release-4.0.0
Update to the 1.13 API.
2 parents fb8544d + ddb1196 commit 13740ae

File tree

781 files changed

+14299
-4226
lines changed

Some content is hidden

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

781 files changed

+14299
-4226
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ Add this dependency to your project's POM:
2626
<dependency>
2727
<groupId>io.kubernetes</groupId>
2828
<artifactId>client-java</artifactId>
29-
<version>3.0.0</version>
29+
<version>4.0.0</version>
3030
<scope>compile</scope>
3131
</dependency>
3232
```
3333

3434
### Gradle users
3535

3636
```groovy
37-
compile 'io.kubernetes:client-java:3.0.0'
37+
compile 'io.kubernetes:client-java:4.0.0'
3838
```
3939

4040
### Others
@@ -127,12 +127,12 @@ All APIs and Models' documentation can be found at the [Generated client's docs]
127127

128128
## Compatibility
129129

130-
| client version | 1.8 | 1.9 | 1.10 | 1.11 | 1.12 |
130+
| client version | 1.9 | 1.10 | 1.11 | 1.12 | 1.13 |
131131
|------------------|------------------|-------------|------------|------------|-------------|
132-
| 1.0.0 || - | - | - | - |
133-
| 2.0.0 | + | - || - | - |
134-
| 3.0.0 | + | + | + || - |
135-
| 4.0.0-beta1 | + | + | + | + ||
132+
| 2.0.0 || - | - | - | - |
133+
| 3.0.0 | + | - || - | - |
134+
| 4.0.0 | + | + | + || - |
135+
| 5.0.0-beta1 | + | + | + | + ||
136136

137137
Key:
138138

kubernetes/docs/AdmissionregistrationV1alpha1Api.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ Name | Type | Description | Notes
148148

149149
<a name="deleteInitializerConfiguration"></a>
150150
# **deleteInitializerConfiguration**
151-
> V1Status deleteInitializerConfiguration(name, body, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy)
151+
> V1Status deleteInitializerConfiguration(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy)
152152
153153

154154

@@ -173,14 +173,14 @@ BearerToken.setApiKey("YOUR API KEY");
173173

174174
AdmissionregistrationV1alpha1Api apiInstance = new AdmissionregistrationV1alpha1Api();
175175
String name = "name_example"; // String | name of the InitializerConfiguration
176-
V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions |
177176
String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed.
177+
V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions |
178178
String dryRun = "dryRun_example"; // String | 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
179179
Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
180180
Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
181181
String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
182182
try {
183-
V1Status result = apiInstance.deleteInitializerConfiguration(name, body, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy);
183+
V1Status result = apiInstance.deleteInitializerConfiguration(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy);
184184
System.out.println(result);
185185
} catch (ApiException e) {
186186
System.err.println("Exception when calling AdmissionregistrationV1alpha1Api#deleteInitializerConfiguration");
@@ -193,8 +193,8 @@ try {
193193
Name | Type | Description | Notes
194194
------------- | ------------- | ------------- | -------------
195195
**name** | **String**| name of the InitializerConfiguration |
196-
**body** | [**V1DeleteOptions**](V1DeleteOptions.md)| |
197196
**pretty** | **String**| If &#39;true&#39;, then the output is pretty printed. | [optional]
197+
**body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional]
198198
**dryRun** | **String**| 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 | [optional]
199199
**gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional]
200200
**orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \&quot;orphan\&quot; finalizer will be added to/removed from the object&#39;s finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional]

kubernetes/docs/AdmissionregistrationV1beta1Api.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ Name | Type | Description | Notes
287287

288288
<a name="deleteMutatingWebhookConfiguration"></a>
289289
# **deleteMutatingWebhookConfiguration**
290-
> V1Status deleteMutatingWebhookConfiguration(name, body, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy)
290+
> V1Status deleteMutatingWebhookConfiguration(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy)
291291
292292

293293

@@ -312,14 +312,14 @@ BearerToken.setApiKey("YOUR API KEY");
312312

313313
AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api();
314314
String name = "name_example"; // String | name of the MutatingWebhookConfiguration
315-
V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions |
316315
String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed.
316+
V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions |
317317
String dryRun = "dryRun_example"; // String | 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
318318
Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
319319
Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
320320
String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
321321
try {
322-
V1Status result = apiInstance.deleteMutatingWebhookConfiguration(name, body, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy);
322+
V1Status result = apiInstance.deleteMutatingWebhookConfiguration(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy);
323323
System.out.println(result);
324324
} catch (ApiException e) {
325325
System.err.println("Exception when calling AdmissionregistrationV1beta1Api#deleteMutatingWebhookConfiguration");
@@ -332,8 +332,8 @@ try {
332332
Name | Type | Description | Notes
333333
------------- | ------------- | ------------- | -------------
334334
**name** | **String**| name of the MutatingWebhookConfiguration |
335-
**body** | [**V1DeleteOptions**](V1DeleteOptions.md)| |
336335
**pretty** | **String**| If &#39;true&#39;, then the output is pretty printed. | [optional]
336+
**body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional]
337337
**dryRun** | **String**| 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 | [optional]
338338
**gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional]
339339
**orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \&quot;orphan\&quot; finalizer will be added to/removed from the object&#39;s finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional]
@@ -354,7 +354,7 @@ Name | Type | Description | Notes
354354

355355
<a name="deleteValidatingWebhookConfiguration"></a>
356356
# **deleteValidatingWebhookConfiguration**
357-
> V1Status deleteValidatingWebhookConfiguration(name, body, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy)
357+
> V1Status deleteValidatingWebhookConfiguration(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy)
358358
359359

360360

@@ -379,14 +379,14 @@ BearerToken.setApiKey("YOUR API KEY");
379379

380380
AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api();
381381
String name = "name_example"; // String | name of the ValidatingWebhookConfiguration
382-
V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions |
383382
String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed.
383+
V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions |
384384
String dryRun = "dryRun_example"; // String | 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
385385
Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
386386
Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
387387
String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
388388
try {
389-
V1Status result = apiInstance.deleteValidatingWebhookConfiguration(name, body, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy);
389+
V1Status result = apiInstance.deleteValidatingWebhookConfiguration(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy);
390390
System.out.println(result);
391391
} catch (ApiException e) {
392392
System.err.println("Exception when calling AdmissionregistrationV1beta1Api#deleteValidatingWebhookConfiguration");
@@ -399,8 +399,8 @@ try {
399399
Name | Type | Description | Notes
400400
------------- | ------------- | ------------- | -------------
401401
**name** | **String**| name of the ValidatingWebhookConfiguration |
402-
**body** | [**V1DeleteOptions**](V1DeleteOptions.md)| |
403402
**pretty** | **String**| If &#39;true&#39;, then the output is pretty printed. | [optional]
403+
**body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional]
404404
**dryRun** | **String**| 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 | [optional]
405405
**gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional]
406406
**orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \&quot;orphan\&quot; finalizer will be added to/removed from the object&#39;s finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional]
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
2+
# AdmissionregistrationV1beta1WebhookClientConfig
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**caBundle** | **byte[]** | &#x60;caBundle&#x60; is a PEM encoded CA bundle which will be used to validate the webhook&#39;s server certificate. If unspecified, system trust roots on the apiserver are used. | [optional]
8+
**service** | [**AdmissionregistrationV1beta1ServiceReference**](AdmissionregistrationV1beta1ServiceReference.md) | &#x60;service&#x60; is a reference to the service for this webhook. Either &#x60;service&#x60; or &#x60;url&#x60; must be specified. If the webhook is running within the cluster, then you should use &#x60;service&#x60;. Port 443 will be used if it is open, otherwise it is an error. | [optional]
9+
**url** | **String** | &#x60;url&#x60; gives the location of the webhook, in standard URL form (&#x60;scheme://host:port/path&#x60;). Exactly one of &#x60;url&#x60; or &#x60;service&#x60; must be specified. The &#x60;host&#x60; should not refer to a service running in the cluster; use the &#x60;service&#x60; field instead. The host might be resolved via external DNS in some apiservers (e.g., &#x60;kube-apiserver&#x60; cannot resolve in-cluster DNS as that would be a layering violation). &#x60;host&#x60; may also be an IP address. Please note that using &#x60;localhost&#x60; or &#x60;127.0.0.1&#x60; as a &#x60;host&#x60; is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. The scheme must be \&quot;https\&quot;; the URL must begin with \&quot;https://\&quot;. A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. Attempting to use a user or basic auth e.g. \&quot;user:password@\&quot; is not allowed. Fragments (\&quot;#...\&quot;) and query parameters (\&quot;?...\&quot;) are not allowed, either. | [optional]
10+
11+
12+

0 commit comments

Comments
 (0)