Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

- 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.

未关闭 适合新手
#432 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 7 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
72/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
go, kubernetes
领域
build-system, cli

调研方向

载荷指向 sigs.k8s.io/kind 在 go.mod 中锁定的 v0.30.0 版本,该 issue 要求将其升级到 v0.33.0 或更高版本。请编辑 go.mod,运行 go mod tidy,然后构建 CLI。当 crossplane project run 在 Podman 6.x 下能列出 kind 集群且没有模板错误,并且构建和测试仍然通过时,即视为完成。

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

描述

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):
主要语言
Go
星标
22
派生
37
平均合并
6 天 8 小时
30 天内合并 PR
22

环境准备

从这里开始

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

crossplane/cli 的其他 Issue

查看 crossplane/cli 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

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