Implement pod_container_status type method for Openshift
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- Python
- Stars
- 17
- Forks
- 84
- PR merge metrics
- No merged PRs in 30d
Description
This snippet, provided by @gshefer, demonstrates the desired data structure:
def pods_per_ready_status(self):
"""Grabing the Container Statuses Summary of the pods from API"""
# TODO: Add later this logic to wrapanapi
entities_j = self.mgmt.api.get('pod')[1]['items']
out = {}
for entity_j in entities_j:
out[entity_j['metadata']['name']] = {
condition['type']: eval_strings([condition['status']]).pop()
for condition in entity_j['status'].get('conditions', [])
}
return out
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Locate the provider-management entry point for the requested pod_container_status type method and inspect how the pod API is accessed. Use the supplied pods_per_ready_status snippet and the pod endpoint response as the reference for the returned structure; done means the method exposes the requested container-status summary.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100