fluxcd-flux2/cmd/flux
Stefan Prodan 45837d2d1b
Implement flux migrate command
The migrate command must be run before a Flux minor version upgrade.
The command migrates the Flux custom resources stored in Kubernetes etcd to their latest API version, ensuring the Flux components can continue to function correctly after the upgrade.

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2025-08-08 13:23:00 +03:00
..
testdata Migrate sourcesecret package to runtime/secrets APIs 2025-07-29 22:50:56 +09: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
bootstrap.go Add --ssh-hostkey-algos flag to bootstrap command 2024-05-01 13:02:50 +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 misplaced quotes 2024-12-09 12:21:52 +02:00
build_kustomization_test.go fix: allow recursive dry-run over local sources 2025-04-16 09:27:26 +02:00
check.go Set Kubernetes 1.31 as min supported version 2025-05-23 15:15:13 +03: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 Upgrade fluxcd/pkg dependencies 2025-07-15 10:32:35 +01:00
create_helmrelease_test.go Add support for creating HR with .spec.ChartRef 2024-05-11 22:49:52 +02: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 Promote image CLI commands to stable 2025-06-25 20:52:11 -03:00
create_image_repository.go Promote image CLI commands to stable 2025-06-25 20:52:11 -03:00
create_image_update.go Promote image CLI commands to stable 2025-06-25 20:52:11 -03:00
create_kustomization.go Upgrade fluxcd/pkg dependencies 2025-07-15 10:32:35 +01: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 Migrate sourcesecret package to runtime/secrets APIs 2025-07-29 22:50:56 +09:00
create_secret_githubapp_test.go [RFC-007] Flux cmd support for GitHub provider: This commit includes the following changes - 2025-02-13 11:36:24 -08: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 Add --proxy-secret-ref to flux create source commands 2024-09-27 18:08:46 +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 Migrate sourcesecret package to runtime/secrets APIs 2025-07-29 22:50:56 +09:00
create_source_git_test.go add sparse checkout to cli 2025-06-04 12:04:41 -04:00
create_source_helm.go Migrate sourcesecret package to runtime/secrets APIs 2025-07-29 22:50:56 +09: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 Make golden tests pass 2025-06-13 13:25:26 +02:00
create_tenant_test.go Add tests and golden files for create tenant 2025-06-13 13:25:26 +02:00
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 Fix command debug hr not taking targetPath into account 2025-03-03 10:56:16 +00:00
debug_helmrelease_test.go Add missing copyright headers 2024-12-13 10:54:07 +02:00
debug_kustomization.go Add links to status docs in flux debug commands 2024-12-18 00:50:02 +02:00
debug_kustomization_test.go Implement flux debug kustomization command 2024-12-13 12:21:41 +02: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 Promote image CLI commands to stable 2025-06-25 20:52:11 -03:00
delete_image_repository.go Promote image CLI commands to stable 2025-06-25 20:52:11 -03:00
delete_image_update.go Promote image CLI commands to stable 2025-06-25 20:52:11 -03: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 Update CLI to OCIRepository v1 (GA) 2025-05-28 15:12:17 +03: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 Update CLI to OCIRepository v1 (GA) 2025-05-28 15:12:17 +03:00
events_test.go Update tests to GA APIs 2024-05-09 19:05:45 +03:00
export.go add a preview note for all non-bootstrap commands 2023-04-05 16:05:21 +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_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 Promote image CLI commands to stable 2025-06-25 20:52:11 -03:00
export_image_repository.go Promote image CLI commands to stable 2025-06-25 20:52:11 -03:00
export_image_update.go Promote image CLI commands to stable 2025-06-25 20:52:11 -03: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_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 Add missing copyright headers 2024-12-13 10:54:07 +02:00
get.go Change error reporting in get.go from logger.Failure to fmt.Errorf to give non 0 exit code 2025-05-07 19:11:16 -03: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_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 Promote image CLI commands to stable 2025-06-25 20:52:11 -03:00
get_image_policy.go Promote image CLI commands to stable 2025-06-25 20:52:11 -03:00
get_image_repository.go Promote image CLI commands to stable 2025-06-25 20:52:11 -03:00
get_image_update.go Promote image CLI commands to stable 2025-06-25 20:52:11 -03: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 Update CLI to OCIRepository v1 (GA) 2025-05-28 15:12:17 +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_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 Change error reporting in get.go from logger.Failure to fmt.Errorf to give non 0 exit code 2025-05-07 19:11:16 -03: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 Update image-automation-controller API to v1beta2 2024-05-07 08:34:10 +00:00
image_test.go Add --interval and --reflect-digest flags to flux create image policy 2025-05-28 08:25:10 +01:00
install.go Migrate sourcesecret package to runtime/secrets APIs 2025-07-29 22:50:56 +09:00
install_test.go Generate image pull secret at install 2024-04-06 11:39:51 +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 Update CLI to OCIRepository v1 (GA) 2025-05-28 15:12:17 +03: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 update description of kubeconfig flags 2023-09-18 10:48:08 +01:00
main_e2e_test.go check readiness using kstatus 2023-12-08 19:47:12 +05:30
main_test.go Implement flux debug kustomization command 2024-12-13 12:21:41 +02: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 Implement flux migrate command 2025-08-08 13:23:00 +03:00
object.go Add support for passing multiple objects to suspend/resume commands 2023-06-29 08:23:13 +02:00
oci.go refactor: cleanup GetArtifactRegistryCredentials error handling 2025-06-21 14:11:18 +09:00
pull.go add a preview note for all non-bootstrap commands 2023-04-05 16:05:21 +03:00
pull_artifact.go Update CLI to OCIRepository v1 (GA) 2025-05-28 15:12:17 +03: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 for insecure registries 2025-07-10 12:38:53 +03: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 Update to Kubernetes 1.33.0 and Go 1.24.0 2025-04-28 15:02:33 +03:00
reconcile_helmrelease.go Update CLI to OCIRepository v1 (GA) 2025-05-28 15:12:17 +03:00
reconcile_image.go add a preview note for all non-bootstrap commands 2023-04-05 16:05:21 +03:00
reconcile_image_repository.go non-reconciliable & readiness of static objects 2023-12-08 21:15:20 +05:30
reconcile_image_updateauto.go Update image-automation-controller API to v1beta2 2024-05-07 08:34:10 +00:00
reconcile_kustomization.go Update CLI to OCIRepository v1 (GA) 2025-05-28 15:12:17 +03: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 Promote bucket commands to GA 2024-09-27 17:01:21 +03: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 Update to Kubernetes 1.33.0 and Go 1.24.0 2025-04-28 15:02:33 +03:00
resume.go Update to Kubernetes 1.33.0 and Go 1.24.0 2025-04-28 15:02:33 +03:00
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_repository.go Add examples for resuming/suspending multiple objects 2023-06-29 12:50:38 +05:30
resume_image_updateauto.go Update image-automation-controller API to v1beta2 2024-05-07 08:34:10 +00: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 Update CLI to OCIRepository v1 (GA) 2025-05-28 15:12:17 +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 CLI to OCIRepository v1 (GA) 2025-05-28 15:12:17 +03: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_repository.go Add examples for resuming/suspending multiple objects 2023-06-29 12:50:38 +05:30
suspend_image_updateauto.go Update image-automation-controller API to v1beta2 2024-05-07 08:34:10 +00: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 Update CLI to OCIRepository v1 (GA) 2025-05-28 15:12:17 +03:00
trace.go Update CLI to OCIRepository v1 (GA) 2025-05-28 15:12:17 +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_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