一键导入
update-go-version
Guides through updating the Go version (go and toolchain) across all modules, workspaces, Dockerfiles, and scripts in Config Connector.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Guides through updating the Go version (go and toolchain) across all modules, workspaces, Dockerfiles, and scripts in Config Connector.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Automate the initial scaffolding of a KCC "direct" resource, including CRD types and generation scripts. Use this when starting a new "direct" implementation for a GCP resource.
Creates or updates the _identity.go and _reference.go files for a Config Connector resource, ensuring they follow the canonical gcpurls.Template pattern. Use this when you need to make sure the identity and reference is up to date for a KCC resource or when implementing IdentityV2 and refs.Ref for a resource.
Standards and workflows for creating direct KRM Go types for an existing CRD while maintaining strict schema compatibility.
Comprehensive review guide and criteria for PRs adding or modifying features in legacy resources (TF patches, DCL patches, CRD changes, MockGCP alignment, and Direct Controller alignment).
Implement the controller, mappers, and fuzzer for a direct KCC resource, ensuring package isolation and CI compliance. Use this when implementing the main reconciliation logic for a "direct" resource.
Guides modifying, patching, and updating resources and fields managed by the Terraform/legacy controller, including patching the local/vendored Terraform Google Beta provider.
| name | update-go-version |
| description | Guides through updating the Go version (go and toolchain) across all modules, workspaces, Dockerfiles, and scripts in Config Connector. |
This skill outlines the process for updating the Go version in the Config Connector (KCC) codebase.
Update each go.mod file and the root go.work file.
Specifically, set the go directive to the minor version (e.g., 1.26) and the toolchain directive to the precise patch version (e.g., go1.26.4).
The affected files include:
go.mod (root)go.work (root)mockgcp/go.modmockgcp/tools/patch-proto/go.moddev/tools/controllerbuilder/go.moddev/tools/crd-mcp-server/go.modexperiments/tools/licensescan/go.modexperiments/kubectl-plan/go.modexperiments/kompanion/go.modUpdate base and builder images in Dockerfiles to target the precise patch version (e.g., golang:1.26.4).
Key files to check/update:
operator/Dockerfilebuild/tooling/Dockerfilebuild/builder/Dockerfile.devcontainer/DockerfileUpdate Go version variables in environment setup scripts.
scripts/environment-setup/golang-setup.sh (e.g., update GO_VERSION="1.26.1" to "1.26.4")Once the files are updated, run go mod tidy on all modified modules to ensure the dependency graph is fully resolved and compliant with the updated toolchain.
Alternatively, run:
make ready-pr
which runs presubmits, formatting, and tidying.
Validate that the codebase builds and tests pass under the updated version configuration.
go test ./...