Skip to content

Commit ab5fc88

Browse files
authored
Merge pull request #727 from brendandburns/revk8s
Update code generation to Kubernetes 1.22.2, Rev package to 0.16.0
2 parents 8c5d2e2 + 63d864c commit ab5fc88

File tree

726 files changed

+57630
-121402
lines changed

Some content is hidden

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

726 files changed

+57630
-121402
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@kubernetes/client-node",
3-
"version": "0.15.1",
3+
"version": "0.16.0",
44
"description": "NodeJS client for kubernetes",
55
"repository": {
66
"type": "git",

settings

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export GEN_COMMIT=a3aef4d
2121
export USERNAME=kubernetes
2222

2323
# Kubernetes branch/tag to get the OpenAPI spec from.
24-
export KUBERNETES_BRANCH="v1.21.1"
24+
export KUBERNETES_BRANCH="v1.22.2"
2525

2626
# client version for packaging and releasing. It can
2727
# be different than SPEC_VERSION.
@@ -30,4 +30,4 @@ export CLIENT_VERSION="0.8-SNAPSHOT"
3030
# Name of the release package
3131
export PACKAGE_NAME="@kubernetes/node-client"
3232

33-
export OPENAPI_GENERATOR_COMMIT=v4.2.3
33+
export OPENAPI_GENERATOR_COMMIT=v5.2.1

src/cp_test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { anything, anyFunction, instance, mock, verify, when } from 'ts-mockito';
22
import * as querystring from 'querystring';
3-
import * as WebSocket from 'isomorphic-ws';
3+
import WebSocket = require('isomorphic-ws');
44

55
import { CallAwaiter } from '../test';
66
import { KubeConfig } from './config';
@@ -44,7 +44,7 @@ describe('Cp', () => {
4444
it('should run extract tar command to a url', async () => {
4545
const kc = new KubeConfig();
4646
const fakeWebSocketInterface: WebSocketInterface = mock(WebSocketHandler);
47-
const fakeWebSocket: WebSocket = mock(WebSocket);
47+
const fakeWebSocket: WebSocket = mock(WebSocket) as WebSocket;
4848
const callAwaiter: CallAwaiter = new CallAwaiter();
4949
const exec = new Exec(kc, instance(fakeWebSocketInterface));
5050
const cp = new Cp(kc, exec);

src/gen/.openapi-generator/COMMIT

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Requested Commit: v4.2.3
2-
Actual Commit: 26ace1337d42638e2f3c3727d3438666a6886b31
1+
Requested Commit: v5.2.1
2+
Actual Commit: 8403e59aa03d0099b7c6872b9b884a3d83d05b9a

src/gen/.openapi-generator/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.2.3
1+
5.2.1

src/gen/api/admissionregistrationApi.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,17 @@
22
* Kubernetes
33
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
44
*
5-
* The version of the OpenAPI document: v1.21.1
5+
* The version of the OpenAPI document: v1.22.2
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
99
* https://openapi-generator.tech
1010
* Do not edit the class manually.
1111
*/
1212

13-
import localVarRequest = require('request');
14-
import http = require('http');
13+
14+
import localVarRequest from 'request';
15+
import http from 'http';
1516

1617
/* tslint:disable:no-unused-locals */
1718
import { V1APIGroup } from '../model/v1APIGroup';

src/gen/api/admissionregistrationV1Api.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,17 @@
22
* Kubernetes
33
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
44
*
5-
* The version of the OpenAPI document: v1.21.1
5+
* The version of the OpenAPI document: v1.22.2
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
99
* https://openapi-generator.tech
1010
* Do not edit the class manually.
1111
*/
1212

13-
import localVarRequest = require('request');
14-
import http = require('http');
13+
14+
import localVarRequest from 'request';
15+
import http from 'http';
1516

1617
/* tslint:disable:no-unused-locals */
1718
import { V1APIResourceList } from '../model/v1APIResourceList';
@@ -781,7 +782,7 @@ export class AdmissionregistrationV1Api {
781782
/**
782783
* list or watch objects of kind MutatingWebhookConfiguration
783784
* @param pretty If \'true\', then the output is pretty printed.
784-
* @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.
785+
* @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.
785786
* @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
786787
* @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything.
787788
* @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything.
@@ -895,7 +896,7 @@ export class AdmissionregistrationV1Api {
895896
/**
896897
* list or watch objects of kind ValidatingWebhookConfiguration
897898
* @param pretty If \'true\', then the output is pretty printed.
898-
* @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.
899+
* @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.
899900
* @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
900901
* @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything.
901902
* @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything.

0 commit comments

Comments
 (0)