Skip to content

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

@johnico

Description

@johnico

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]
    }
  },

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions