Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

- In Podman 6.x, the {{.Labels}} template field comes out as a flat string (k=v,k=v) instead of a map, so index .Labels "<key>" can't work.

Đang mở Phù hợp với người mới
#432 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 3 ngày

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

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
72/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
go, kubernetes
Lĩnh vực
build-system, cli

Hướng nghiên cứu

Payload trỏ đến ghim go.mod của sigs.k8s.io/kind ở phiên bản v0.30.0, và issue yêu cầu nâng lên v0.33.0 trở lên. Hãy chỉnh sửa go.mod, chạy go mod tidy và build CLI. Hoàn thành khi crossplane project run liệt kê các cluster kind trên Podman 6.x mà không còn lỗi template, và build cùng test vẫn chạy thành công.

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

Mô tả

bug
What happened?
➜  example-project-webapp crossplane project run           
✗ Setting up control plane
✓ Collecting resources
✓ Updating dependency Kubernetes API v1.35.0
✗ Updating dependency xpkg.crossplane.io/crossplane-contrib/function-auto-ready:>=v0.0.0
crossplane: error: failed to list kind clusters: failed to list clusters: command "podman ps -a --filter label=io.x-k8s.kind.cluster --format '{{index .Labels "io.x-k8s.kind.cluster"}}'" failed with error: exit status 125
➜  example-project-webapp podman ps -a --filter label=io.x-k8s.kind.cluster
CONTAINER ID  IMAGE                                                                                           COMMAND     CREATED      STATUS       PORTS  NAMES
12e9bb92b9d5  docker.io/kindest/node@sha256:a1ed56cfb0e7b93589bdf97c8cd566405a265939e3620fc4f5de89adff580ae5              12 days ago  Up 24 hours  127.0.0.1:61277->6443/tcp  kind-control-plane
  • The bug is in kind's Podman support. kind fixed it in PR #4203 (merged 2026-06-26), which is in kind v0.33.0 (released 2026-08-26). The fix chooses a different label template for Podman 5.0 and later.
  • The Crossplane CLI embeds kind as a Go library. Its go.mod pins sigs.k8s.io/kind v0.30.0 at both the v2.5.0 tag and main, so it still has the broken template.

bump kind to v0.33.0 or later.

How can we reproduce it?
podman --version                                 
podman version 6.1.4
Client Version: v2.5.0
Server Version: v2.4.2
What environment did it happen in?
  • Crossplane CLI version: 2.5.0
  • Platform (e.g., linux/amd64): MacOS (amd64)
  • Crossplane version (if applicable):
Ngôn ngữ chính
Go
Star
20
Fork
34
Merge trung bình
5 ngày 4 giờ
Pull request đã merge (30 ngày)
21

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

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 crossplane/cli

Tất cả issue của crossplane/cli

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.