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

v36.0.0 regression fetching container logs

オープン
#2,596 コメント 14 件 リアクション 2 件 担当者 1 名 GitHub で見る

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

@yliaog がすでに取り組んでいます。

2026年7月16日 から。

評価

この issue はまだ評価されていません。

説明

kind/bug

What happened (please include outputs or screenshots):

As of upgrading kubernetes to 36.0.0, something looks wrong in read_namespaced_pod_log

What you expected to happen:

Getting log lines out of my containers

How to reproduce it (as minimally and precisely as possible):

            since_secs = 600
            l = pod_api.read_namespaced_pod_log(namespace="foo-ns",
                                                name="foo-pod",
                                                container="foo-container",
                                                follow=False,
                                                timestamps=True,
                                                since_seconds=600)
            print("logs first chars:", l[:100])

Running with kubernetes 35.0.0, last line logged would say

logs first chars: 2026-05-25T07:52:34.381816807Z [25/05/2026 07:52:34] [MainThread] xxxx

Switching to 36.0.0. Same code outputs:

logs first chars: b'2026-05-24T15:57:23.246955706Z [24/05/2026 15:57:23] [MainThread] 

Got confused at first, try to cast it or decode it into a string .... but no: this is a string already.
That b' are just the two first characters of my string.

Setting timestamps=False doesn't change anything, I'm still getting that b' prefix.

Anything else we need to know?:

Environment:

  • Kubernetes version (kubectl version): v1.31.14
  • Python version (python --version) 3.12.13
  • Python client version (pip list | grep kubernetes) 36.0.0
主要言語
Python
スター
7.7k
フォーク
3.5k
平均マージ
3日 4時間
マージ済み PR(30日)
9

環境構築

はじめの一歩

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

kubernetes-client/python のほかの issue

kubernetes-client/python の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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