source-controller icon indicating copy to clipboard operation
source-controller copied to clipboard

Flux Get and Kubectl Get should mirror output, especially between Source Objects e.g Buckets and GitRepos

Open o6uoq opened this issue 2 years ago • 0 comments

As a Flux user I want to be able to retrieve the full <name|url|path> when running a get against a source e.g. git or bucket So that I am able to quickly and efficiently retrieve for full names, URLs and paths for sources

Buckets

❯ kubectl get buckets -n flux-system
NAME                 ENDPOINT           AGE   READY 
some-bucket         s3.amazonaws.com   17h   True
another-bucket      s3.amazonaws.com   17h   True

GitRepos

❯ kubectl get gitrepositories -n flux-system
NAME          URL                                        AGE    READY
base          ssh://[email protected]/o6uoq/gitops-consul   84s    True

You can find the exact bucket name by digging via kubectl: ❯ kubectl -n flux-system get buckets.source.toolkit.fluxcd.io some-bucket -o yaml | grep bucketName

NB: I would expect the same behaviour and output as when running flux get as I do with kubectl get

o6uoq avatar May 30 '22 11:05 o6uoq