Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

fix(kubernetes): missing `kubernetes_kind` or `attribute_path` errors are dropped

オープン 初心者向け
#404 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@Ankit-cs がすでに取り組んでいます。

2026年10月15日 から。

  • #413 @Ankit-cs による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
78/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
kubernetes, python
領域
backend

調査の方向性

src/tirith/providers/kubernetes/handler.py から始めてください。ここでは get_value が "kubernetes_kind must be provided" と "attribute_path must be provided" の結果を outputs に追加せず返しており、provide() が戻り値を破棄しています。issue に示された呼び出しで再現し、その後 tests/providers/kubernetes/ 配下にテストを追加してください。テストでは、不足している引数ごとに対応する err を持つ結果が1件あることを期待します。両方のケースがそのエラーを返し、pytest tests/ が通れば完了です。

索引モデルが issue の本文から書いたものです。

説明

bug good first issue hacktoberfest
Problem

In src/tirith/providers/kubernetes/handler.py, get_value returns the "kubernetes_kind must be provided" and "attribute_path must be provided" results instead of appending them to outputs. provide() ignores the return value, so it returns [] and the policy author never sees the error.

To reproduce:

from tirith.providers.kubernetes.handler import provide
provide({"operation_type": "attribute", "attribute_path": "spec"}, [{"kind": "Pod", "spec": {}}])
# -> []
What to change

Append both error results to outputs (as the "kind is not found" branch already does) and return.

Done when

A new test in tests/providers/kubernetes/ calls provide() without each argument and gets one result carrying the matching err.


Comment to claim this issue and wait to be assigned. Unclaimed or inactive for 3 days, it returns to the pool. Run pytest tests/ and black --line-length 120 before opening the PR.

主要言語
Python
スター
170
フォーク
46
平均マージ
1日 20時間
マージ済み PR(30日)
9

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

StackGuardian/tirith のほかの issue

StackGuardian/tirith の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。