Replies: 3 comments 1 reply
-
flux resources are chained. Wouldn't reconciling the top level |
Beta Was this translation helpful? Give feedback.
-
I thought so, but it doesn't seem to work on a my HelmRelease. I have the following dependency chain:
I was able to replicate the behavior I described:
I would have expected all of these commands to have the same effect as (5). Am I doing something wrong? |
Beta Was this translation helpful? Give feedback.
-
Interestingly, the suspend and resume commands have an --all option, so you can e.g. force reconciliation of all kustomizations with
There seems to be no --all-namespaces option for these commands. |
Beta Was this translation helpful? Give feedback.
-
I frequently need to delete and re-create resources while iterating on a change. For example, this is necessary to re-create PVCs that may have been initialized with incorrect data. It is also useful when iterating on a
replicaset
orstatefulset
, which (mostly) prohibit edits.This can leave the cluster in an inconsistent state, where some resources don't exist because they have manually been deleted (Kustomize) or uninstalled (Helm). I can force the reconciliation of individual
Kustomize
andHelmRelease
resources using theflux reconcile
CLI. But that requires that I know which exact flux artifacts need reconciliation.I was hoping to find a command like:
flux reconcile --all
that reconciles all resources, regardless of whether Flux thinks they have changed and/orflux reconcile -l my-label=my-label-value
to reconcile resources that have a label, regardless of whether Flux thinks they have changed and/orflux reconcile git source my-source
to recursively reconcile all resources within the repository, regardless of whether Flux thinks they have changed.As far as I can tell, none of those exist -- but
flux reconcile
does force reconciliation of a resource if manually specify it on the command-line. I have worked around this by writing a shell script that runs a separateflux reconcile
command for each resource that I have touched, but that is tedious and error-prone to keep that script up-to-date. How do ya'll deal with this?P.S. I am open to changing my workflow if there is a better way to iterate on changes that doesn't require solving this problem. I just haven't found one yet!
Beta Was this translation helpful? Give feedback.
All reactions