Skip to content

Add --show-source to flux get ks and flux get hr #5828

Merged
stefanprodan merged 2 commits intofluxcd:mainfrom
rafaelperoco:feat/show-source-get-kustomization
Apr 10, 2026
Merged

Add --show-source to flux get ks and flux get hr #5828
stefanprodan merged 2 commits intofluxcd:mainfrom
rafaelperoco:feat/show-source-get-kustomization

Conversation

@rafaelperoco
Copy link
Copy Markdown
Contributor

@rafaelperoco rafaelperoco commented Apr 9, 2026

When looking at a cluster with Kustomizations or HelmReleases from different sources it is hard to identify which source each resource refers to. This adds a --show-source flag to both flux get kustomization and flux get helmrelease that displays the source Kind/Namespace/Name.

Follows the same format used in get sources external.

For HelmReleases, supports both ChartRef and Chart.Spec.SourceRef source references.

Fixes #2692

@rafaelperoco rafaelperoco force-pushed the feat/show-source-get-kustomization branch from 2b1f34a to ed21654 Compare April 9, 2026 00:36
@rafaelperoco rafaelperoco changed the title Add --show-source flag to flux get kustomization feat: add --show-source flag to flux get kustomization Apr 9, 2026
Fixes fluxcd#2692

Signed-off-by: Rafael Peroco <rafaelperoco@gmail.com>
@rafaelperoco rafaelperoco force-pushed the feat/show-source-get-kustomization branch from ed21654 to e2af45a Compare April 9, 2026 00:49
@rafaelperoco
Copy link
Copy Markdown
Contributor Author

@stefanprodan this implements the --show-source flag you suggested in #2692.

@stefanprodan
Copy link
Copy Markdown
Member

For consistency we should have the same flag for flux get hr. @rafaelperoco can you do that as well?

@rafaelperoco
Copy link
Copy Markdown
Contributor Author

For consistency we should have the same flag for flux get hr. @rafaelperoco can you do that as well?

sure

Signed-off-by: Rafael Peroco <rafaelperoco@gmail.com>
@rafaelperoco
Copy link
Copy Markdown
Contributor Author

done @stefanprodan

@stefanprodan stefanprodan added the area/ux In pursuit of a delightful user experience label Apr 10, 2026
@stefanprodan stefanprodan changed the title feat: add --show-source flag to flux get kustomization Add --show-source to flux get ks and flux get hr Apr 10, 2026
Copy link
Copy Markdown
Member

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Thanks @rafaelperoco 🏅

@stefanprodan stefanprodan merged commit 3d4eec6 into fluxcd:main Apr 10, 2026
7 checks passed
@makkes
Copy link
Copy Markdown
Member

makkes commented Apr 10, 2026

Fantastic! Thanks for handling this @rafaelperoco.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/ux In pursuit of a delightful user experience

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show source name with "flux get kustomization"

3 participants