Added
gitops: generated repositories now record which version of the repository structure they were built with, in a.gitops-metadata.yamlfile at the repository root.gitops initcreates it and everygitops add ...records the layer it generated.gitops check: new command reporting the parts of a GitOps repository that were generated with an older repository structure than the current kubectl-gs produces. It exits non-zero when anything is behind, so it can be used as a check in the repository’s own CI. Repositories created before this existed are brought in withgitops check --adopt. (#23540)
Fixed
template cluster: releases without a publishedrelease-<provider>chart, such as a hand-crafted Release CR used for testing (e.g.35.0.0-andreas), no longer produce an App CR pointing to a chart which does not exist. Thecluster-<provider>chart is used instead, which resolves the Release CR in the management cluster. (#4347)template cluster:--cluster-versionis no longer ignored for CAPA, CAPZ and AKS. Setting it templates the givencluster-<provider>app version instead of therelease-<provider>chart, which allows testing a provider chart build together with a release.Commands that fail because you are not logged into a management cluster now print a hint telling you to run
kubectl gs login, instead of only a raw client error such asdial tcp 127.0.0.1:8080: connect: connection refusedorno matches for kind "AppCatalogEntry". The hint is added for every command, not justtemplate cluster.