kubernetes-client / kubernetes-client/python
Friendlier OOP API?
- Dominant language
- Python
- Stars
- 7.7k
- Forks
- 3.5k
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 18
Description
**What is the feature and why do you need it**:
I'd love to be able to do something like this:
```python
from kubernetes.client import ExtensionsV1beta1Ingress as Ingress
...
for ingress in Ingress.list(namespace="default"):
ingress.metadata.labels["foo"] = "bar"
ingress.patch()
```
**Describe the solution you'd like to see**:
Implementing a bunch of default class methods and properties such as `list` and `list_namespaced` (or maybe `list(namespace="...")`), as well as instance methods such as `delete` and `patch`.
I know that this feature proposal is rather succinct, and I'm sorry about this, but I'd love some feedback before moving in any direction. Maybe this is too much of a change and would be simpler implemented in another library based on this client?
Contributor guide
Research direction
Review the existing ExtensionsV1beta1Ingress usage and the proposed list, list_namespaced, delete, and patch methods. The issue names no files or tests and does not define a concrete done condition; first clarify the API design and compatibility expectations before implementation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100