urunc-cleanup: unnecessary k3s volume mount and redundant label removal in reset path
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 88/100
- issue の種類
- リファクタリング
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- kubernetes, shell
- 領域
- devops, infrastructure
調査の方向性
deployment/urunc-deploy/urunc-cleanup/overlays/k3s/mount_k3s_conf.yaml と urunc-deploy の k3s overlay を比較し、その後 deployment/urunc-deploy/scripts/install.sh の reset ケースを追跡してください。reset パスが kubectl と nsenter のみを使用していることを確認し、kubectl kustomize が、不要な mount や重複した label 操作なしで期待される cleanup overlay を生成することを検証してください。
索引モデルが issue の本文から書いたものです。
説明
Description
The urunc-cleanup DaemonSet's k3s overlay mounts the host's containerd config directory (/var/lib/rancher/k3s/agent/etc/containerd/) into the cleanup pod. However, the reset code path in install.sh — which is the only action the cleanup pod runs — never accesses any files under /etc/containerd/. It only uses kubectl API calls and nsenter syscalls to restart the CRI runtime.
The volume mount was copied from the urunc-deploy k3s overlay, where it is needed for the install and cleanup code paths that modify containerd configuration via tomlq.
Additionally, the reset case block at line 395 in install.sh calls kubectl label node "$NODE_NAME" urunc.io/urunc-runtime- and then calls reset_runtime(), which internally runs the exact same kubectl label command again at line 308. This second call is redundant and produces a warning.
System info
- Urunc version: main branch (HEAD)
- Arch: N/A (deployment manifests / shell script)
- VMM: N/A
- Unikernel: N/A
Steps to reproduce
- Trace the
resetcode path indeployment/urunc-deploy/scripts/install.sh:main("reset") → reset_runtime() → restart_cri_runtime() → wait_till_node_is_ready(). No filesystem I/O on/etc/containerd/. - Compare
urunc-cleanup/overlays/k3s/mount_k3s_conf.yamlwithurunc-deploy/overlays/k3s/mount_k3s_conf.yaml— the cleanup version adds a volume mount that the reset path never uses. - Run
kubectl kustomize deployment/urunc-deploy/urunc-cleanup/overlays/k3s/with and without the patch — output is functionally identical for the reset use case. - For the redundant label: line 395 and line 308 both run
kubectl label node "$NODE_NAME" urunc.io/urunc-runtime-.
LLM usage
An LLM (Google Antigravity / Claude Opus 4.6) was used to assist with code path analysis and tracing. All findings were independently verified by reading the source code.
- 主要言語
- Go
- スター
- 298
- フォーク
- 205
- 平均マージ
- 2日 18時間
- マージ済み PR(30日)
- 27
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
urunc-dev/urunc のほかの issue
-
bug K8s/Tools
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
urunc-dev/urunc#1071 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Core enhancement OCI
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
urunc-dev/urunc#1066 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
dev
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
urunc-dev/urunc#1021 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
メンテナーはふだん 1 日以内に返信
urunc-dev/urunc の issue をすべて見る
似ている issue
-
flaky-test
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
SocialGouv/iterion#2108 ·
メンテナーはふだん 1 日以内に返信