flux2
flux2 copied to clipboard
Show source name with "flux get kustomization"
When looking at a cluster with Kustomizations from different sources it would be helpful to print the source's name of each Kustomization when listing them.
I would add the source after NAME
Would it be better to make the source column namspace/name since the source can be in a different namespace?
Would it be better to make the source column
namspace/namesince the source can be in a different namespace?
I would have loved to do that, plus the source's kind. But unfortunately the JSONPath you can use with the additionalPrinterColumns field is very simplistic so from what I know it's not possible to aggregate the values of multiple fields into one. 😞
Maybe we should leave this as it is and improve flux get where we can do aggregations.
How about this?
$ ./bin/flux get ks velero -A --include-source
NAMESPACE NAME SOURCE REVISION SUSPENDED READY MESSAGE
kommander velero GitRepository/kommander-flux/management main/d8bac31 False True Applied revision: main/d8bac31
I just realized I should've created a new issue in flux2 but instead transferred the existing one from kustomize-controller, effectively making the discussion hard to reason about. Sorry for that
Hi @makkes - is this still an open issue? I'd be happy to contribute.
I propose we use flux get ks --show-source to follow kubectl conventions.
@ysg410 if you can contribute this feature would be great!
/assign