LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

flux-reconcile

Trigger reconciliation of Flux sources and resources

TLDR

Reconcile a GitRepository outside its interval
$ flux reconcile source git podinfo
copy
Reconcile a Kustomization
$ flux reconcile kustomization podinfo
copy
Sync the Kustomization source and then apply it
$ flux reconcile kustomization podinfo --with-source
copy
Reconcile a HelmRelease
$ flux reconcile helmrelease podinfo
copy
Reconcile a HelmRelease and its source
$ flux reconcile helmrelease podinfo --with-source
copy
Force a one-off Helm upgrade
$ flux reconcile helmrelease podinfo --force
copy

SYNOPSIS

flux reconcile kind name [options]

DESCRIPTION

flux reconcile asks a Flux controller to reconcile one object immediately and waits until that reconciliation finishes or the timeout expires. It does not change the object's interval.--with-source on a Kustomization or HelmRelease reconciles the source first, then applies the result. On a HelmRelease, --force requests a one-off install or upgrade, and --reset clears the failure count.Short kind aliases such as `ks` for kustomization and `hr` for helmrelease are accepted.

PARAMETERS

--with-source

Reconcile the source of a Kustomization or HelmRelease before applying it.
--force
On a HelmRelease, force a one-off install or upgrade.
--reset
On a HelmRelease, reset the failure count.
-n, --namespace ns
Namespace scope for the CLI request (default `flux-system`).
--timeout duration
Timeout for the operation (default `5m0s`).
--kubeconfig file
Path to the kubeconfig file.
--context name
Kubeconfig context to use.

KINDS

kustomization

Reconcile a Kustomization. --with-source also reconciles its source.
helmrelease
Reconcile a HelmRelease. Accepts --with-source, --force, and --reset.
source git, source helm, source oci, source bucket, source chart
Reconcile a GitRepository, HelmRepository, OCIRepository, Bucket, or HelmChart.
image policy, image repository, image update
Reconcile ImagePolicy, ImageRepository, or ImageUpdateAutomation objects.
receiver
Reconcile a Receiver.

INSTALL

sudo apk add flux
copy
brew install flux
copy
nix profile install nixpkgs#flux
copy

CAVEATS

The command blocks until the object is ready or the timeout elapses. A suspended object is not reconciled until it is resumed. --force on a HelmRelease can upgrade a release outside the chart change the controller would otherwise wait for. Cluster access via kubectl is required.

SEE ALSO

RESOURCES

Copied to clipboard
Kai