kubernetesjs 0.6.2 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/esm/index.js CHANGED
@@ -735,11 +735,7 @@ export class KubernetesClient extends APIClient {
735
735
  const path = `/api/v1/persistentvolumes/${params.path.name}/status`;
736
736
  return await this.patch(path, params.query, params.body, opts);
737
737
  }
738
- async getPods(params, opts) {
739
- const path = `/api/v1/pods`;
740
- return await this.get(path, null, null, opts);
741
- }
742
- async listPods(params, opts) {
738
+ async listCoreV1PodForAllNamespaces(params, opts) {
743
739
  const path = `/api/v1/pods`;
744
740
  return await this.get(path, null, null, opts);
745
741
  }
package/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { APIClient, APIClientRequestOpts } from "./client";
1
+ import { APIClient, APIClientOptions, APIClientRequestOpts } from "./client";
2
2
  export interface MutatingWebhook {
3
3
  admissionReviewVersions: string[];
4
4
  clientConfig: WebhookClientConfig;
@@ -2732,7 +2732,7 @@ export interface WatchEvent {
2732
2732
  export type RawExtension = {
2733
2733
  [key: string]: unknown;
2734
2734
  };
2735
- export type IntOrString = string;
2735
+ export type IntOrString = string | number;
2736
2736
  export interface Info {
2737
2737
  buildDate: string;
2738
2738
  compiler: string;
@@ -10680,7 +10680,7 @@ export interface GetServiceAccountIssuerOpenIDKeysetRequest {
10680
10680
  export interface GetCodeVersionRequest {
10681
10681
  }
10682
10682
  export declare class KubernetesClient extends APIClient {
10683
- constructor(options: any);
10683
+ constructor(options: APIClientOptions);
10684
10684
  getSwaggerJSON(): Promise<unknown>;
10685
10685
  getServiceAccountIssuerOpenIDConfiguration(params: GetServiceAccountIssuerOpenIDConfigurationRequest, opts?: APIClientRequestOpts): Promise<string>;
10686
10686
  getCoreAPIVersions(params: GetCoreAPIVersionsRequest, opts?: APIClientRequestOpts): Promise<APIVersions>;
@@ -10864,8 +10864,7 @@ export declare class KubernetesClient extends APIClient {
10864
10864
  readCoreV1PersistentVolumeStatus(params: ReadCoreV1PersistentVolumeStatusRequest, opts?: APIClientRequestOpts): Promise<PersistentVolume>;
10865
10865
  replaceCoreV1PersistentVolumeStatus(params: ReplaceCoreV1PersistentVolumeStatusRequest, opts?: APIClientRequestOpts): Promise<PersistentVolume>;
10866
10866
  patchCoreV1PersistentVolumeStatus(params: PatchCoreV1PersistentVolumeStatusRequest, opts?: APIClientRequestOpts): Promise<PersistentVolume>;
10867
- getPods(params: ListCoreV1PodForAllNamespacesRequest, opts?: APIClientRequestOpts): Promise<PodList>;
10868
- listPods(params: ListCoreV1PodForAllNamespacesRequest, opts?: APIClientRequestOpts): Promise<PodList>;
10867
+ listCoreV1PodForAllNamespaces(params: ListCoreV1PodForAllNamespacesRequest, opts?: APIClientRequestOpts): Promise<PodList>;
10869
10868
  listCoreV1PodTemplateForAllNamespaces(params: ListCoreV1PodTemplateForAllNamespacesRequest, opts?: APIClientRequestOpts): Promise<PodTemplateList>;
10870
10869
  listCoreV1ReplicationControllerForAllNamespaces(params: ListCoreV1ReplicationControllerForAllNamespacesRequest, opts?: APIClientRequestOpts): Promise<ReplicationControllerList>;
10871
10870
  listCoreV1ResourceQuotaForAllNamespaces(params: ListCoreV1ResourceQuotaForAllNamespacesRequest, opts?: APIClientRequestOpts): Promise<ResourceQuotaList>;
package/index.js CHANGED
@@ -738,11 +738,7 @@ class KubernetesClient extends client_1.APIClient {
738
738
  const path = `/api/v1/persistentvolumes/${params.path.name}/status`;
739
739
  return await this.patch(path, params.query, params.body, opts);
740
740
  }
741
- async getPods(params, opts) {
742
- const path = `/api/v1/pods`;
743
- return await this.get(path, null, null, opts);
744
- }
745
- async listPods(params, opts) {
741
+ async listCoreV1PodForAllNamespaces(params, opts) {
746
742
  const path = `/api/v1/pods`;
747
743
  return await this.get(path, null, null, opts);
748
744
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kubernetesjs",
3
- "version": "0.6.2",
3
+ "version": "0.7.1",
4
4
  "author": "Dan Lynch <pyramation@gmail.com>",
5
5
  "description": "Fully Typed Kubernetes",
6
6
  "keywords": [
@@ -50,7 +50,7 @@
50
50
  "test:deploy": "ts-node scripts/deploy.ts"
51
51
  },
52
52
  "devDependencies": {
53
- "schema-sdk": "^0.11.3"
53
+ "schema-sdk": "^0.12.0"
54
54
  },
55
- "gitHead": "d7bd6e39e651200afad7a014784f756c53a1bacc"
55
+ "gitHead": "c467853beb8f3c493df8a6292227c9f192bfa27e"
56
56
  }