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

Đang mở
#638 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
62/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
helm, kubernetes
Lĩnh vực
devops, infrastructure

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Go
Star
110
Fork
63
Merge trung bình
4 ngày 1 giờ
Pull request đã merge (30 ngày)
5

Chuẩn bị môi trường

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ROCm/gpu-operator

Tất cả issue của ROCm/gpu-operator

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.