Replies: 1 comment
-
With awareness that almost every cluster is going to have some unmanaged resources, so this list will not be empty in the typical case, I envision this working with a namespace filter. Running You could call Next I'd wish to have an exclude-list capability to make the output of Alternatively maybe you'd add an annotation like flux-exclude to resources that Flux should not list here, and give It's definitely worth some thought put into this before we release any changes. I think there are probably some edge cases I didn't consider in the bits above. But we don't need all those bells and whistles if it just helps you track down orphaned Flux resources, since bottom line every Flux resource should definitely be kept in Git unless you are not doing GitOps, and Flux should help you do GitOps. |
Beta Was this translation helpful? Give feedback.
-
From https://cloud-native.slack.com/archives/CLAJ40HV3/p1689680529331029?thread_ts=1689678469.471389&cid=CLAJ40HV3
Scenario :
You create a resource with
flux create helmrelease ....
then forget to add the resource to git. So you endup with aflux get helm-release xxxx
with no corresponding file in git.It would be nice to have a
flux list-orphaned
command that list all flux resources that were created from aflux create xxxx
command and not from a git file.Beta Was this translation helpful? Give feedback.
All reactions