godaddy / kubernetes-client

Simplified Kubernetes API client for Node.js.
MIT License
960 stars 192 forks source link

is there a response typing for Deployments/pods ? #723

Open johnico opened 3 years ago

johnico commented 3 years ago

hi when I run the following command :|

await this.api.apis.apps.v1.namespaces('deafult').statefulsets.get({query});

i have got the response

{
  statusCode: 200,
  body: {
    kind: 'StatefulSetList',
    apiVersion: 'apps/v1',
    metadata: {
      selfLink: '/apis/apps/v1/namespaces/default/statefulsets',
      resourceVersion: ''
    },
    items: []
  }
}

my question if there is typing for that? id should I write smth by myself? especially for the items object

{
    metadata: {
      name: 'test',
      namespace: 'defaulti',
      selfLink: '/apis/apps/v1/namespaces/default/deployments/name',
      resourceVersion: '',
      generation: 1,
      creationTimestamp: 'Z',
      labels: [Object],
      annotations: [Object],
      managedFields: [Array]
    },
    spec: {
      replicas: 1,
      selector: [Object],
      template: [Object],
      strategy: [Object],
      revisionHistoryLimit: 10,
      progressDeadlineSeconds: 600
    },
    status: {
      observedGeneration: 1,
      replicas: 1,
      updatedReplicas: 1,
      readyReplicas: 1,
      availableReplicas: 1,
      conditions: [Array]
    }
  },