Resource names exceed the 63-char limit with long release/override names

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

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
62/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
helm, kubernetes

调研方向

Run the provided helm template reproduction and inspect helm-charts-k8s/templates/event-recorder-clusterrolebinding-rbac.yaml, then trace the top-level and KMM fullname helpers that produce the affected names. Confirm which rendered resources exceed Kubernetes's 63-character limit, implement a consistent fix for the top-level and KMM charts, and rerun the reproduction to verify those names are within the limit; the NFD dependency may remain out of scope.

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

描述

Several templates use a fullname helper's output as a prefix and append suffixes. Truncation happens inside the helper, before the suffix is appended, so final resource names can exceed the 63-character Kubernetes name limit.

Reproduction:

helm template $(printf 'r%.0s' {1..30}) . --set nameOverride=longvaluehere \
  | grep -nE 'name:' \
  | awk '{ for(i=1;i<=NF;i++) if(length($i)>63) print length($i), $0 }'

This prints ~20 names over 63 chars, in three groups:

  1. KMM subchart (kmm.fullname) e.g. -kmm-event-recorder-clusterrolebinding. Longest appended suffix: -event-recorder-clusterrolebinding (34 chars).

  2. Top-level gpu-operator chart e.g. -event-recorder-clusterrolebinding, -metrics-exporter-rbac-proxy, -leader-election-rolebinding. Same root cause in the top-level fullname helper.

  3. node-feature-discovery dependency -node-feature-discovery-{master,worker}-conf. Originates in the NFD subchart; likely not fixable in this repo.

You can see an example here.

Solutions

Possible solution: reserve room for the longest suffix in the fullname helpers, shorten the resource-name suffixes, or append a short hash to preserve uniqueness. Happy to implement a fix if needed.

主要语言
Go
星标
110
派生
63
平均合并
4 天 1 小时
30 天内合并 PR
5

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 没有贡献指南

从这里开始

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

ROCm/gpu-operator 的其他 Issue

查看 ROCm/gpu-operator 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

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