Skip to content

fix(deps): update module github.com/giantswarm/gitops-commit to v0.13.0 - #377

Merged
fiunchinho merged 1 commit into
mainfrom
bump-gitops-commit-v0-13-0
Dec 3, 2026
Merged

fiunchinho merged 1 commit into
mainfrom
bump-gitops-commit-v0-13-0

Conversation

@fiunchinho

Copy link
Copy Markdown
Member

Part of giantswarm/giantswarm#39600

Problem

cluster-manager uses gitops-commit v0.12.1. giantswarm/giantswarm#39600 wants one gitops-commit version in every consumer, and the current stable is v0.13.0.

Change

  • github.com/giantswarm/gitops-commit v0.12.1 -> v0.13.0 in go.mod and go.sum. No other module moves.
  • v0.13.0 adds only feat(target): resolve objects on a cluster Flux applies to through spec.kubeConfig gitops-commit#95: the new target.NewFluxRemote (cluster-manager does not use it) and one visible change in target.NewFlux, which cluster-manager uses.
  • No code change. cluster-manager reads spec.kubeConfig.secretRef only on HelmReleases (deliversElsewhere in internal/detect/detect.go, kubeconfigSecretOf in internal/tools/cluster_delete.go). No code reads a Kustomization's spec.kubeConfig next to the resolver, so nothing disagrees with the new rule.
  • docs/commit-mode.md already says "A Kustomization that applies to another cluster (spec.kubeConfig)". The rule now matches it exactly.

What changes for a user

An object whose kustomize.toolkit.fluxcd.io/* labels name a Kustomization that applies through spec.kubeConfig.configMapRef is no longer taken as applied from git on cluster-manager's own cluster. Before, only spec.kubeConfig.secretRef counted as another cluster.

  • Mode commit: such an object gets no commit target (commitTarget is empty). The tool refuses mode commit and tells you to use mode apply.
  • Mode apply: such an object is changed or removed live, where the write was refused as "in git" before. This holds for every write that asks the resolver: the node pool writes, delete_node_pool, the leftovers pass of delete_cluster, and delete_cluster's delete of the cluster's own Kustomization after its removal was merged. A Kustomization with secretRef already takes these paths.

The owner decided on 2026-12-03 to keep this rule: any spec.kubeConfig counts as another cluster. No installation has a Kustomization with configMapRef.

Tests

go build ./..., go test -p 2 ./..., golangci-lint and pre-commit pass. No test changes: no test has a Kustomization with configMapRef. gitops-commit's own target/flux_test.go pins the new rule.

Review

ID Severity Outcome Finding
F1 non-blocking accepted by the owner (2026-12-03): keep the v0.13.0 rule; no installation has a Kustomization with configMapRef. A parent Kustomization with only configMapRef now gives ErrNotApplied, so mergedRemoval and the other inGit callers write or delete live where v0.12.1 refused. This is harmful only when the configMapRef names Flux's own cluster. "What changes for a user" names these paths.

The second review (Codex) was skipped: the change is small (6 lines).

@fiunchinho fiunchinho self-assigned this Dec 3, 2026
@fiunchinho
fiunchinho marked this pull request as ready for review December 3, 2026 11:39
@fiunchinho
fiunchinho requested a review from a team as a code owner December 3, 2026 11:39
@fiunchinho
fiunchinho removed the request for review from a team December 3, 2026 11:39
@circleci-architect

Copy link
Copy Markdown

Published Helm chart cluster-manager

0.40.4-r1584d102t20261203113315h4fc7dc4
Chart cluster-manager
Version 0.40.4-r1584d102t20261203113315h4fc7dc4
OCI reference oci://gsoci.azurecr.io/charts/giantswarm/cluster-manager:0.40.4-r1584d102t20261203113315h4fc7dc4
Digest sha256:cf7cacfa9aa3f10c0e6177676bdfa294bad6edcfcfdb61d090ba66630af00f29
Registry public — gsoci.azurecr.io
Git catalog giantswarm-test-catalog (index)
Pull this chart
helm pull oci://gsoci.azurecr.io/charts/giantswarm/cluster-manager --version 0.40.4-r1584d102t20261203113315h4fc7dc4

Posted by architect-orb · build 5875 · commit 4fc7dc4 · updated in place on every push

@fiunchinho
fiunchinho merged commit 8002689 into main Dec 3, 2026
16 checks passed
@fiunchinho
fiunchinho deleted the bump-gitops-commit-v0-13-0 branch December 3, 2026 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant