Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Friendlier OOP API?

未关闭
#998 8 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
停滞
技术栈
python
领域
api

调研方向

审查现有的 ExtensionsV1beta1Ingress 使用情况,以及拟议的 list_namespaced、delete 和 patch 方法。该 issue 没有列出文件或测试,也没有定义具体的完成条件;在实现之前,先明确 API 设计和兼容性预期。

由索引模型根据 Issue 内容生成。

描述

kind/feature lifecycle/frozen priority/awaiting-more-evidence

What is the feature and why do you need it:

I'd love to be able to do something like this:

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?

主要语言
Python
星标
7.7k
派生
3.5k
平均合并
1 天 14 小时
30 天内合并 PR
18

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

kubernetes-client/python 的其他 Issue

查看 kubernetes-client/python 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。