If the need arises to change the branch used by a Flux installation, this can be done without bootstrapping the cluster again. Not that this is recommended only on similar setups (e.g. you’re trying out a new change on a dev cluster and want to point to your dev branch which is based on the default branch).
This article assumes the following components are in play:
cluster01
clusters/development
(this folder contains the flux-system
folder)main
12345-something-to-test
that is based on main
with a new change in itflux suspend source git flux-system
clusters/development/flux-system/gotk-sync.yaml
to set the value of branch to 12345-something-to-test
and commit and push itGitRepository
named flux-system
in the flux-system
namespace so the branch field is also 12345-something-to-test
flux resume source git flux-system
Once testing is complete, repeat the above process but setting the branch back to main
.
Company Reviews