godaddy / godaddy/kubernetes-client
is there a response typing for Deployments/pods ?
- Dominant language
- JavaScript
- Stars
- 963
- Forks
- 189
- PR merge metrics
- No merged PRs in 30d
Description
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
``` (deployments item)
{
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]
}
},
```
Contributor guide
Research direction
Start at the apps.v1.namespaces(...).statefulsets.get entry point and inspect how the response body and its items are typed for StatefulSetList and deployment resources. Done means the client either exposes usable typings for these items or clearly documents that callers must define them themselves.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, kubernetes, node.js
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100