CLI 目录 横向对比 FCRS-1.0 标准 /llms.txt
← 返回 CLI 目录

Fairwinds Pluto

$ pluto 官方出品 低风险
Fairwinds · 云原生与基础设施 · Apache-2.0 · macos / linux / windows

pluto(FairwindsOps/pluto)可在静态 IaC 清单(detect-files)、Helm 发布记录(detect-helm)与在线资源(detect-api-resources)中定位已弃用或已移除的 apiVersion,支持 -o json 与 --target-versions。

FCRS-1.0 综合评分
92 /100
极佳 (Excellent)
中置信度 (源码/文档)
零摩擦安装命令
brew install pluto
CLI vs MCP 选型建议 优先选 CLI

pluto 直接扫描本地仓库、helm template 管道与 Helm Secret 并输出 -o json 及精准退出码,无需 MCP。

Agent 友好度体检单

✓ 原生 JSON 输出
— 字段裁剪
✓ 无头非交互
— 支持 Dry-Run
— 只读模式开关
— 支持 NO_COLOR
✓ 自省/Schema 发现
— 官方 SKILL.md

当前为静态评估(本机尚未安装或尚未运行探针)。可在本地运行 npm run data:probe 并提交 data/probes/ 升级为实测证据。

FCRS-1.0 六维评分拆解

Agent 友好度 23 / 25

支持 -o json、-o yaml、-o csv、标准输入管道(detect -)以及区分“弃用”与“移除”的精确退出码。

  • Supports -o json across detect-files, detect-helm, and detect
安全与权限边界 24 / 25

100% 只读检测工具,无本地或远程写入副作用,从不修改清单或集群状态。

  • Purely read-only deprecation detector
安装与运行摩擦 15 / 15

跨 macOS、Linux、Windows 的单文件静态 Go 二进制,可通过 Homebrew 或 GitHub Releases 安装。

  • Cross-platform binary via brew install pluto
能力覆盖与边际价值 13 / 15

在集群升级前精准排查静态清单与 Helm v3 Secret 中失效的 apiVersion,降低升级故障风险。

  • Includes replacement API guidance in JSON output
维护与来源背书 9 / 10

由 Fairwinds 官方(FairwindsOps/pluto)基于 Apache-2.0 协议维护,持续跟进 Kubernetes API 弃用周期。

  • Official FairwindsOps/pluto repository
文档与可验证性 8 / 10

pluto.docs.fairwinds.com 详尽说明了退出码含义、输出结构与自定义版本映射文件。

  • Official docs at pluto.docs.fairwinds.com

安全边界、鉴权与放权指南

鉴权方式
无需鉴权 本地配置文件
凭证存储位置

detect-files 与标准输入 detect 无需任何凭证;仅 detect-helm 与 detect-api-resources 会读取 ~/.kube/config(--kubeconfig)。

潜在副作用
只读查询
费用与配额提示

CLI 基于 Apache-2.0 免费开源,严格只读运行。

可复制到 CLAUDE.md / AGENTS.md 的安全护栏
# Pluto Agent Rules
- Always pass `--target-versions k8s=v1.<target>.0` and `-o json` when planning cluster upgrades.
- Use `pluto detect-files -d <path>` for offline IaC checks before `detect-helm`.
- Check `pluto` exit codes (2 = deprecated found, 3 = removed found) in automated scripts.

Agent 高频安全命令配方

只读查询(安全推荐)

检测本地 YAML 目录中的已弃用 API
pluto detect-files -d ./k8s --target-versions k8s=v1.31.0 -o json

对照 Kubernetes v1.31.0 扫描静态清单并以 JSON 输出已弃用/已移除的 API。

扫描在线 Helm 发布中已移除的 API
pluto detect-helm -o json --ignore-deprecations

检查集群已部署 Helm 发布清单,仅以 JSON 报告已移除的 API。

核心优势

  • + 严格只读,-o json 输出直接包含 replacement-api 替换建议。
  • + 通过不同退出码精准区分已弃用警告与已移除阻塞项。
  • + 统一支持本地文件、helm template 管道及集群内 Helm v3 Release Secret 检查。

注意事项与踩坑点

  • ! 内置版本之外的第三方 CRD 需通过 -f additional-versions.yaml 补充定义。
  • ! 检测到弃用或移除时返回退出码 2/3,在开启 set -e 的脚本中需妥善处理。

已验证兼容的 Agent 宿主

Claude Code Codex CLI Gemini CLI