Flux: Ability to disable automated git syncing

Created on 28 Jan 2020  路  5Comments  路  Source: fluxcd/flux

Describe the bug

Is it possible to disable automated git syncing all together within Flux so that only manual sync via fluxctl sync command will update cluster configuration?

This would be useful in our production environments as we want to only deploy new configuration via a DevOps pipeline which uses fluxctl.

Expected behavior

Automated syncing of the git repository is disabled and only manual sync via fluxctl will roll out new configuration.

Additional context

  • Flux version: 1.17.1
  • Kubernetes version: 1.14.8
  • Git provider: Azure Devops
  • Container registry provider: Azure Container Registry
question

Most helpful comment

We should probably have an explicit flag for this.

All 5 comments

You can set the sync interval to one year with: --sync-interval=525600m and --git-poll-interval=525600m

Be aware that any kind of update done through the API (e.g., using fluxctl lock) will trigger a git refresh, which will in general trigger a sync.

We should probably have an explicit flag for this.

This is a pretty big blocker in our adoption in using Flux, is there any proposed changes for this?

Really need to see this as an option, it makes non production environments impossible to test in because flux will just deploy conflicts directly to, for instance, a k8s cluster.

Was this page helpful?
0 / 5 - 0 ratings