fluxcd-flux2/cmd/flux
Mara Furland e574419391 feat(flux get): add --output flag, yaml only
Copied the flag syntax from kubectl --output so it can be extended later
without breaking changes.

It's not integrated terribly well, but the next step would be to
abstract the printing so we can switch out printers more cleanly and
also pick which information is rendered for each printing format, and I
do not know go or this codebase well enough to do that yet.

Signed-off-by: Mara Furland <mara@fur.land>
2026-03-23 11:17:58 -04:00
..
testdata feat(flux get): add --output flag, yaml only 2026-03-23 11:17:58 -04:00
alert.go Update all the references of NC v1beta2 to v1beta3 2023-12-08 21:16:54 +05:30
alert_provider.go Update all the references of NC v1beta2 to v1beta3 2023-12-08 21:16:54 +05:30
artifact.go Add export artifact generator command 2025-09-16 11:00:12 +03:00
bootstrap.go Add source-watcher to the install and bootstrap commands 2025-09-15 23:59:03 +03:00
bootstrap_bitbucket_server.go Remove TLS deprecated flags from flux create secret 2024-09-27 19:54:11 +03:00
bootstrap_git.go Remove TLS deprecated flags from flux create secret 2024-09-27 19:54:11 +03:00
bootstrap_gitea.go Remove TLS deprecated flags from flux create secret 2024-09-27 19:54:11 +03:00
bootstrap_github.go Remove TLS deprecated flags from flux create secret 2024-09-27 19:54:11 +03:00
bootstrap_gitlab.go correct small typo 2025-06-04 11:21:11 +02:00
build.go add a preview note for all non-bootstrap commands 2023-04-05 16:05:21 +03:00
build_artifact.go Promote artifact commands to stable 2025-05-27 16:53:47 +01:00
build_artifact_test.go tests: only provide template values when used 2023-02-15 13:22:44 +01:00
build_kustomization.go fix: normalize paths to prevent concatenation on Windows 2026-01-13 10:25:59 -06:00
build_kustomization_test.go fix: normalize paths to prevent concatenation on Windows 2026-01-13 10:25:59 -06:00
check.go Bump minimum Kubernetes version to 1.33 2026-02-24 12:06:45 +00:00
check_test.go Add /v2 suffix to module name in preparation of 2.0.0 release 2023-04-05 16:05:21 +03:00
cluster_info.go show cluster instance name and version in flux check and flux version 2023-12-06 15:21:55 +01:00
cluster_info_test.go Update dependencies to Kubernetes v1.28.6 2024-01-30 14:07:35 +02:00
completion.go add a preview note for all non-bootstrap commands 2023-04-05 16:05:21 +03:00
completion_bash.go add a preview note for all non-bootstrap commands 2023-04-05 16:05:21 +03:00
completion_fish.go add a preview note for all non-bootstrap commands 2023-04-05 16:05:21 +03:00
completion_powershell.go add a preview note for all non-bootstrap commands 2023-04-05 16:05:21 +03:00
completion_zsh.go add a preview note for all non-bootstrap commands 2023-04-05 16:05:21 +03:00
create.go Fix create command always using imageRepositoryType 2025-01-12 14:09:24 +00:00
create_alert.go Update all the references of NC v1beta2 to v1beta3 2023-12-08 21:16:54 +05:30
create_alertprovider.go Update all the references of NC v1beta2 to v1beta3 2023-12-08 21:16:54 +05:30
create_helmrelease.go fix: #5654 by check if both --chart and --chart-ref are set 2025-12-10 22:08:31 +01:00
create_helmrelease_test.go fix: #5654 by check if both --chart and --chart-ref are set 2025-12-10 22:08:31 +01:00
create_image.go add a preview note for all non-bootstrap commands 2023-04-05 16:05:21 +03:00
create_image_policy.go Implement flux [reconcile|suspend|resume] image policy commands 2025-09-20 00:00:10 -03:00
create_image_repository.go Update image-reflector-controller API imports to v1 2025-09-15 13:34:32 +01:00
create_image_update.go Update toolkit components 2025-09-16 12:08:15 +01:00
create_kustomization.go Migrate create commands to DependencyReference type 2025-09-25 18:22:08 +03:00
create_receiver.go check readiness using kstatus 2023-12-08 19:47:12 +05:30
create_secret.go add a preview note for all non-bootstrap commands 2023-04-05 16:05:21 +03:00
create_secret_git.go Migrate sourcesecret package to runtime/secrets APIs 2025-07-29 22:50:56 +09:00
create_secret_git_test.go add flag --ca-crt-file to flux create secret git 2023-08-23 14:44:09 +05:30
create_secret_github_app.go Introduce support for looking up GH app installation ID 2026-01-19 12:03:08 +00:00
create_secret_githubapp_test.go Introduce support for looking up GH app installation ID 2026-01-19 12:03:08 +00:00
create_secret_helm.go Migrate sourcesecret package to runtime/secrets APIs 2025-07-29 22:50:56 +09:00
create_secret_helm_test.go Add create oci secret command 2022-08-09 12:44:59 +03:00
create_secret_notation.go Migrate sourcesecret package to runtime/secrets APIs 2025-07-29 22:50:56 +09:00
create_secret_notation_test.go build(deps): bump notation-go to v1.2.1 2024-09-05 22:22:47 +10:00
create_secret_oci.go Migrate sourcesecret package to runtime/secrets APIs 2025-07-29 22:50:56 +09:00
create_secret_oci_test.go Add create oci secret command 2022-08-09 12:44:59 +03:00
create_secret_proxy.go Migrate sourcesecret package to runtime/secrets APIs 2025-07-29 22:50:56 +09:00
create_secret_proxy_test.go Add flux create secret proxy command 2024-09-27 19:11:10 +03:00
create_secret_tls.go Migrate sourcesecret package to runtime/secrets APIs 2025-07-29 22:50:56 +09:00
create_secret_tls_test.go Remove TLS deprecated flags from flux create secret 2024-09-27 19:54:11 +03:00
create_source.go add a preview note for all non-bootstrap commands 2023-04-05 16:05:21 +03:00
create_source_bucket.go Use stdout when exporting objects 2025-09-16 11:00:12 +03:00
create_source_chart.go Add (create|delete|export) source chart commands 2024-05-09 11:57:38 +02:00
create_source_chart_test.go Add (create|delete|export) source chart commands 2024-05-09 11:57:38 +02:00
create_source_git.go Use stdout when exporting objects 2025-09-16 11:00:12 +03:00
create_source_git_test.go Update toolkit components 2025-09-15 17:33:20 +01:00
create_source_helm.go Use stdout when exporting objects 2025-09-16 11:00:12 +03:00
create_source_helm_test.go Add OCI support to create source helm 2022-06-01 15:59:52 +02:00
create_source_oci.go Update CLI to OCIRepository v1 (GA) 2025-05-28 15:12:17 +03:00
create_source_oci_test.go Add flags for issuer/subject OCI signature verification 2024-04-17 09:45:33 +02:00
create_tenant.go Allow option to skip tenant namespace creation 2025-11-21 17:46:12 +05:30
create_tenant_test.go Allow option to skip tenant namespace creation 2025-11-21 17:46:12 +05:30
create_test.go validate that object name adheres to RFC 1123 for flux create commands 2022-02-16 10:51:03 +01:00
debug.go Implement flux debug helmrelease command 2024-12-11 11:41:27 +02:00
debug_helmrelease.go Add --show-history flag to debug kustomization 2025-09-26 10:01:31 +01:00
debug_helmrelease_test.go Add --show-history flag to debug helmrelease 2025-09-04 12:44:28 +00:00
debug_kustomization.go Add --show-history flag to debug kustomization 2025-09-26 10:01:31 +01:00
debug_kustomization_test.go Add --show-history flag to debug kustomization 2025-09-26 10:01:31 +01:00
delete.go add a preview note for all non-bootstrap commands 2023-04-05 16:05:21 +03:00
delete_alert.go Update all the references of NC v1beta2 to v1beta3 2023-12-08 21:16:54 +05:30
delete_alertprovider.go Update all the references of NC v1beta2 to v1beta3 2023-12-08 21:16:54 +05:30
delete_helmrelease.go Mark HelmRelease commands as GA 2024-05-09 17:18:11 +03:00
delete_image.go add a preview note for all non-bootstrap commands 2023-04-05 16:05:21 +03:00
delete_image_policy.go Update image-reflector-controller API imports to v1 2025-09-15 13:34:32 +01:00
delete_image_repository.go Update image-reflector-controller API imports to v1 2025-09-15 13:34:32 +01:00
delete_image_update.go Update toolkit components 2025-09-16 12:08:15 +01:00
delete_kustomization.go add a preview note for all non-bootstrap commands 2023-04-05 16:05:21 +03:00
delete_receiver.go add a preview note for all non-bootstrap commands 2023-04-05 16:05:21 +03:00
delete_source.go add a preview note for all non-bootstrap commands 2023-04-05 16:05:21 +03:00
delete_source_bucket.go Promote bucket commands to GA 2024-09-27 17:01:21 +03:00
delete_source_chart.go Update CLI to OCIRepository v1 (GA) 2025-05-28 15:12:17 +03:00
delete_source_git.go add a preview note for all non-bootstrap commands 2023-04-05 16:05:21 +03:00
delete_source_helm.go Migrate flux uninstall to Helm Source API v1 2024-05-06 15:43:10 +03:00
delete_source_oci.go Update CLI to OCIRepository v1 (GA) 2025-05-28 15:12:17 +03:00
diff.go add a preview note for all non-bootstrap commands 2023-04-05 16:05:21 +03:00
diff_artifact.go Fix flux push artifact not working with --provider 2025-10-01 09:37:35 +01:00
diff_artifact_test.go Update to Kubernetes 1.33.0 and Go 1.24.0 2025-04-28 15:02:33 +03:00
diff_kustomization.go fix misplaced quotes 2024-12-09 12:21:52 +02:00
diff_kustomization_test.go Use normalize.UnstructuredList instead of ssa.SetNativeKindsDefaults 2025-06-13 15:15:47 +09:00
docgen.go Revert "Fix broken "edit this page" links in Flux CLI section" 2022-09-06 15:20:42 +02:00
envsubst.go Add flux envsubst command 2024-04-08 17:54:38 +03:00
envsubst_test.go Add flux envsubst command 2024-04-08 17:54:38 +03:00
events.go Fix event listing ignoring pagination token 2026-02-18 15:53:10 +00:00
events_test.go Fix event listing ignoring pagination token 2026-02-18 15:53:10 +00:00
export.go Use stdout when exporting objects 2025-09-16 11:00:12 +03:00
export_alert.go Update all the references of NC v1beta2 to v1beta3 2023-12-08 21:16:54 +05:30
export_alertprovider.go Update all the references of NC v1beta2 to v1beta3 2023-12-08 21:16:54 +05:30
export_artifact.go Add export artifact generator command 2025-09-16 11:00:12 +03:00
export_artifact_generator.go Add export artifact generator command 2025-09-16 11:00:12 +03:00
export_helmrelease.go Mark HelmRelease commands as GA 2024-05-09 17:18:11 +03:00
export_image.go add a preview note for all non-bootstrap commands 2023-04-05 16:05:21 +03:00
export_image_policy.go Update image-reflector-controller API imports to v1 2025-09-15 13:34:32 +01:00
export_image_repository.go Update image-reflector-controller API imports to v1 2025-09-15 13:34:32 +01:00
export_image_update.go Update toolkit components 2025-09-16 12:08:15 +01:00
export_kustomization.go add a preview note for all non-bootstrap commands 2023-04-05 16:05:21 +03:00
export_receiver.go add a preview note for all non-bootstrap commands 2023-04-05 16:05:21 +03:00
export_secret.go misc: remove unused bits of code 2023-10-17 14:08:09 +02:00
export_source.go add a preview note for all non-bootstrap commands 2023-04-05 16:05:21 +03:00
export_source_bucket.go Promote bucket commands to GA 2024-09-27 17:01:21 +03:00
export_source_chart.go Add (create|delete|export) source chart commands 2024-05-09 11:57:38 +02:00
export_source_external.go Adding export source external 2025-10-24 14:52:36 -03:00
export_source_git.go add a preview note for all non-bootstrap commands 2023-04-05 16:05:21 +03:00
export_source_helm.go Mark source helm commands as GA 2024-05-06 12:50:22 +03:00
export_source_oci.go Update CLI to OCIRepository v1 (GA) 2025-05-28 15:12:17 +03:00
export_test.go Adding export source external 2025-10-24 14:52:36 -03:00
get.go feat(flux get): add --output flag, yaml only 2026-03-23 11:17:58 -04:00
get_alert.go Update all the references of NC v1beta2 to v1beta3 2023-12-08 21:16:54 +05:30
get_alertprovider.go Update all the references of NC v1beta2 to v1beta3 2023-12-08 21:16:54 +05:30
get_all.go Update to Kubernetes 1.33.0 and Go 1.24.0 2025-04-28 15:02:33 +03:00
get_artifact.go Add get artifact generator command 2025-09-16 11:00:12 +03:00
get_artifact_generator.go Add get artifact generator command 2025-09-16 11:00:12 +03:00
get_helmrelease.go Mark HelmRelease commands as GA 2024-05-09 17:18:11 +03:00
get_image.go add a preview note for all non-bootstrap commands 2023-04-05 16:05:21 +03:00
get_image_all.go Update toolkit components 2025-09-16 12:08:15 +01:00
get_image_policy.go Update image-reflector-controller API imports to v1 2025-09-15 13:34:32 +01:00
get_image_repository.go Update image-reflector-controller API imports to v1 2025-09-15 13:34:32 +01:00
get_image_update.go Update toolkit components 2025-09-16 12:08:15 +01:00
get_kustomization.go misc: address strings.Title deprecation 2023-10-17 14:07:58 +02:00
get_receiver.go misc: address strings.Title deprecation 2023-10-17 14:07:58 +02:00
get_source.go add a preview note for all non-bootstrap commands 2023-04-05 16:05:21 +03:00
get_source_all.go Adding get source external-artifact 2025-10-09 08:45:01 -03:00
get_source_bucket.go Promote bucket commands to GA 2024-09-27 17:01:21 +03:00
get_source_chart.go Mark source helm commands as GA 2024-05-06 12:50:22 +03:00
get_source_external.go Adding get source external-artifact 2025-10-09 08:45:01 -03:00
get_source_git.go misc: address strings.Title deprecation 2023-10-17 14:07:58 +02:00
get_source_helm.go Mark source helm commands as GA 2024-05-06 12:50:22 +03:00
get_source_oci.go Update CLI to OCIRepository v1 (GA) 2025-05-28 15:12:17 +03:00
get_test.go feat(flux get): add --output flag, yaml only 2026-03-23 11:17:58 -04:00
helmrelease.go Mark HelmRelease commands as GA 2024-05-09 17:18:11 +03:00
helmrelease_test.go e2e: update podinfo to version with newer APIs 2023-03-09 11:43:05 +01:00
image.go Implement flux [reconcile|suspend|resume] image policy commands 2025-09-20 00:00:10 -03:00
image_test.go Implement flux [reconcile|suspend|resume] image policy commands 2025-09-20 00:00:10 -03:00
install.go Use stdout when exporting objects 2025-09-16 11:00:12 +03:00
install_test.go Add source-watcher to the install and bootstrap commands 2025-09-15 23:59:03 +03:00
kustomization.go Update GitRepository Receiver, and Kustomization to v1 2023-04-05 16:05:20 +03:00
kustomization_test.go Add support for passing multiple objects to suspend/resume commands 2023-06-29 08:23:13 +02:00
list.go add a preview note for all non-bootstrap commands 2023-04-05 16:05:21 +03:00
list_artifact.go Fix flux push artifact not working with --provider 2025-10-01 09:37:35 +01:00
log.go Add Warningf to logger interface amd impl 2021-04-08 10:48:27 +03:00
logs.go chore: remove repetitive word 2024-06-11 23:56:04 +02:00
logs_e2e_test.go misc: sinceSeconds -> sinceDuration 2023-10-17 14:08:10 +02:00
logs_unit_test.go Make flux logs more lenient 2023-06-05 10:07:38 +02:00
main.go fix(cli): handle error when writing password prompt and correct spelling (i) Add error handling for fmt.Fprint when writing password prompt to stdout (ii) Fixed : initalization to initialization in the commented region 2025-10-13 20:21:49 +05:30
main_e2e_test.go check readiness using kstatus 2023-12-08 19:47:12 +05:30
main_test.go Introduce support for looking up GH app installation ID 2026-01-19 12:03:08 +00:00
main_unit_test.go check readiness using kstatus 2023-12-08 19:47:12 +05:30
manifests.embed.go Add missing copyright headers 2021-10-14 16:14:28 +03:00
migrate.go Add 2.8 to supported versions for flux migrate -f 2026-02-12 11:02:58 +00:00
migrate_test.go Fix flux migrate -f not considering kind comments 2025-10-04 14:26:54 +01:00
object.go Add support for passing multiple objects to suspend/resume commands 2023-06-29 08:23:13 +02:00
oci.go Fix flux push artifact not working with --provider 2025-10-01 09:37:35 +01:00
pull.go add a preview note for all non-bootstrap commands 2023-04-05 16:05:21 +03:00
pull_artifact.go Fix flux push artifact not working with --provider 2025-10-01 09:37:35 +01:00
push.go add a preview note for all non-bootstrap commands 2023-04-05 16:05:21 +03:00
push_artifact.go Fix flux push artifact not working with --provider 2025-10-01 09:37:35 +01:00
readiness.go Update to Kubernetes 1.33.0 and Go 1.24.0 2025-04-28 15:02:33 +03:00
readiness_test.go check readiness using kstatus 2023-12-08 19:47:12 +05:30
receiver.go Update GitRepository Receiver, and Kustomization to v1 2023-04-05 16:05:20 +03:00
reconcile.go fix: return error immediately on failed reconciliation status 2026-03-13 15:34:12 +05:30
reconcile_helmrelease.go Fix panic on reconcile with source of ExternalArtifact kind 2025-11-17 13:31:13 +00:00
reconcile_image.go add a preview note for all non-bootstrap commands 2023-04-05 16:05:21 +03:00
reconcile_image_policy.go Implement flux [reconcile|suspend|resume] image policy commands 2025-09-20 00:00:10 -03:00
reconcile_image_repository.go Update image-reflector-controller API imports to v1 2025-09-15 13:34:32 +01:00
reconcile_image_updateauto.go Update toolkit components 2025-09-16 12:08:15 +01:00
reconcile_kustomization.go Fix panic on reconcile with source of ExternalArtifact kind 2025-11-17 13:31:13 +00:00
reconcile_receiver.go non-reconciliable & readiness of static objects 2023-12-08 21:15:20 +05:30
reconcile_source.go add a preview note for all non-bootstrap commands 2023-04-05 16:05:21 +03:00
reconcile_source_bucket.go Promote bucket commands to GA 2024-09-27 17:01:21 +03:00
reconcile_source_chart.go Fix panic on reconcile with source of ExternalArtifact kind 2025-11-17 13:31:13 +00:00
reconcile_source_git.go non-reconciliable & readiness of static objects 2023-12-08 21:15:20 +05:30
reconcile_source_helm.go Update Helm Source APIs to v1 (GA) 2024-05-06 12:28:34 +03:00
reconcile_source_oci.go Update CLI to OCIRepository v1 (GA) 2025-05-28 15:12:17 +03:00
reconcile_with_source.go Fix panic on reconcile with source of ExternalArtifact kind 2025-11-17 13:31:13 +00:00
resume.go fix: return error immediately on failed reconciliation status 2026-03-13 15:34:12 +05:30
resume_alert.go Update all the references of NC v1beta2 to v1beta3 2023-12-08 21:16:54 +05:30
resume_alertprovider.go Update all the references of NC v1beta2 to v1beta3 2023-12-08 21:16:54 +05:30
resume_helmrelease.go Mark HelmRelease commands as GA 2024-05-09 17:18:11 +03:00
resume_image.go add a preview note for all non-bootstrap commands 2023-04-05 16:05:21 +03:00
resume_image_policy.go Implement flux [reconcile|suspend|resume] image policy commands 2025-09-20 00:00:10 -03:00
resume_image_repository.go Update image-reflector-controller API imports to v1 2025-09-15 13:34:32 +01:00
resume_image_updateauto.go Update toolkit components 2025-09-16 12:08:15 +01:00
resume_kustomization.go Add examples for resuming/suspending multiple objects 2023-06-29 12:50:38 +05:30
resume_receiver.go Add examples for resuming/suspending multiple objects 2023-06-29 12:50:38 +05:30
resume_source.go add a preview note for all non-bootstrap commands 2023-04-05 16:05:21 +03:00
resume_source_bucket.go Promote bucket commands to GA 2024-09-27 17:01:21 +03:00
resume_source_chart.go Update Helm Source APIs to v1 (GA) 2024-05-06 12:28:34 +03:00
resume_source_git.go Add examples for resuming/suspending multiple objects 2023-06-29 12:50:38 +05:30
resume_source_helm.go Update Helm Source APIs to v1 (GA) 2024-05-06 12:28:34 +03:00
resume_source_oci.go Update CLI to OCIRepository v1 (GA) 2025-05-28 15:12:17 +03:00
source.go Adding get source external-artifact 2025-10-09 08:45:01 -03:00
source_oci_test.go e2e: update podinfo to version with newer APIs 2023-03-09 11:43:05 +01:00
stats.go Update toolkit components 2025-09-16 12:08:15 +01:00
status.go check readiness using kstatus 2023-12-08 19:47:12 +05:30
suspend.go Add support for passing multiple objects to suspend/resume commands 2023-06-29 08:23:13 +02:00
suspend_alert.go Update all the references of NC v1beta2 to v1beta3 2023-12-08 21:16:54 +05:30
suspend_alertprovider.go Update all the references of NC v1beta2 to v1beta3 2023-12-08 21:16:54 +05:30
suspend_helmrelease.go Mark HelmRelease commands as GA 2024-05-09 17:18:11 +03:00
suspend_image.go add a preview note for all non-bootstrap commands 2023-04-05 16:05:21 +03:00
suspend_image_policy.go Implement flux [reconcile|suspend|resume] image policy commands 2025-09-20 00:00:10 -03:00
suspend_image_repository.go Update image-reflector-controller API imports to v1 2025-09-15 13:34:32 +01:00
suspend_image_updateauto.go Update toolkit components 2025-09-16 12:08:15 +01:00
suspend_kustomization.go Add examples for resuming/suspending multiple objects 2023-06-29 12:50:38 +05:30
suspend_receiver.go Add examples for resuming/suspending multiple objects 2023-06-29 12:50:38 +05:30
suspend_source.go add a preview note for all non-bootstrap commands 2023-04-05 16:05:21 +03:00
suspend_source_bucket.go Promote bucket commands to GA 2024-09-27 17:01:21 +03:00
suspend_source_chart.go Update Helm Source APIs to v1 (GA) 2024-05-06 12:28:34 +03:00
suspend_source_git.go Add examples for resuming/suspending multiple objects 2023-06-29 12:50:38 +05:30
suspend_source_helm.go Update Helm Source APIs to v1 (GA) 2024-05-06 12:28:34 +03:00
suspend_source_oci.go Update CLI to OCIRepository v1 (GA) 2025-05-28 15:12:17 +03:00
tag.go add a preview note for all non-bootstrap commands 2023-04-05 16:05:21 +03:00
tag_artifact.go Fix flux push artifact not working with --provider 2025-10-01 09:37:35 +01:00
trace.go Add support for ExternalArtifact to flux trace 2025-09-23 15:49:19 +03:00
trace_test.go Fix flux trace for HRs from OCIRepositorys 2025-05-14 18:02:18 +02:00
tree.go add a preview note for all non-bootstrap commands 2023-04-05 16:05:21 +03:00
tree_artifact.go Add tree artifact generator command 2025-09-16 11:00:17 +03:00
tree_artifact_generator.go Add tree artifact generator command 2025-09-16 11:00:17 +03:00
tree_kustomization.go Update HelmRelease API to v2 2024-05-09 17:10:00 +03:00
tree_kustomization_test.go Update Go to v1.17 2022-01-10 16:30:38 +01:00
uninstall.go Properly detect unexpected arguments 2024-01-21 13:06:59 -06:00
version.go show cluster instance name and version in flux check and flux version 2023-12-06 15:21:55 +01:00
version_test.go Fix controller version info 2023-08-22 12:36:58 +03:00
version_utils.go Add /v2 suffix to module name in preparation of 2.0.0 release 2023-04-05 16:05:21 +03:00
version_utils_test.go Update Go to v1.17 2022-01-10 16:30:38 +01:00