Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
johnico opened this issue Jun 15, 2021 · 0 comments
Open

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

johnico opened this issue Jun 15, 2021 · 0 comments

Comments

@johnico
Copy link

johnico commented Jun 15, 2021

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]
    }
  },
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant