You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>
2 weeks ago
..
testdata Migrate sourcesecret package to runtime/secrets APIs 3 weeks ago
alert.go Update all the references of NC v1beta2 to v1beta3 2 years ago
alert_provider.go Update all the references of NC v1beta2 to v1beta3 2 years ago
bootstrap.go Add `--ssh-hostkey-algos` flag to bootstrap command 1 year ago
bootstrap_bitbucket_server.go Remove TLS deprecated flags from `flux create secret` 11 months ago
bootstrap_git.go Remove TLS deprecated flags from `flux create secret` 11 months ago
bootstrap_gitea.go Remove TLS deprecated flags from `flux create secret` 11 months ago
bootstrap_github.go Remove TLS deprecated flags from `flux create secret` 11 months ago
bootstrap_gitlab.go correct small typo 3 months ago
build.go add a preview note for all non-bootstrap commands 2 years ago
build_artifact.go Promote artifact commands to stable 3 months ago
build_artifact_test.go tests: only provide template values when used 3 years ago
build_kustomization.go fix misplaced quotes 9 months ago
build_kustomization_test.go fix: allow recursive dry-run over local sources 4 months ago
check.go Set Kubernetes 1.31 as min supported version 3 months ago
check_test.go Add /v2 suffix to module name in preparation of 2.0.0 release 2 years ago
cluster_info.go show cluster instance name and version in flux check and flux version 2 years ago
cluster_info_test.go Update dependencies to Kubernetes v1.28.6 2 years ago
completion.go add a preview note for all non-bootstrap commands 2 years ago
completion_bash.go add a preview note for all non-bootstrap commands 2 years ago
completion_fish.go add a preview note for all non-bootstrap commands 2 years ago
completion_powershell.go add a preview note for all non-bootstrap commands 2 years ago
completion_zsh.go add a preview note for all non-bootstrap commands 2 years ago
create.go Fix create command always using imageRepositoryType 7 months ago
create_alert.go Update all the references of NC v1beta2 to v1beta3 2 years ago
create_alertprovider.go Update all the references of NC v1beta2 to v1beta3 2 years ago
create_helmrelease.go Upgrade fluxcd/pkg dependencies 1 month ago
create_helmrelease_test.go Add support for creating HR with .spec.ChartRef 1 year ago
create_image.go add a preview note for all non-bootstrap commands 2 years ago
create_image_policy.go Promote image CLI commands to stable 2 months ago
create_image_repository.go Promote image CLI commands to stable 2 months ago
create_image_update.go Promote image CLI commands to stable 2 months ago
create_kustomization.go Upgrade fluxcd/pkg dependencies 1 month ago
create_receiver.go check readiness using kstatus 2 years ago
create_secret.go add a preview note for all non-bootstrap commands 2 years ago
create_secret_git.go Migrate sourcesecret package to runtime/secrets APIs 3 weeks ago
create_secret_git_test.go add flag `--ca-crt-file` to `flux create secret git` 2 years ago
create_secret_github_app.go Migrate sourcesecret package to runtime/secrets APIs 3 weeks ago
create_secret_githubapp_test.go [RFC-007] Flux cmd support for GitHub provider: This commit includes the following changes - 6 months ago
create_secret_helm.go Migrate sourcesecret package to runtime/secrets APIs 3 weeks ago
create_secret_helm_test.go Add create oci secret command 3 years ago
create_secret_notation.go Migrate sourcesecret package to runtime/secrets APIs 3 weeks ago
create_secret_notation_test.go build(deps): bump notation-go to v1.2.1 12 months ago
create_secret_oci.go Migrate sourcesecret package to runtime/secrets APIs 3 weeks ago
create_secret_oci_test.go Add create oci secret command 3 years ago
create_secret_proxy.go Migrate sourcesecret package to runtime/secrets APIs 3 weeks ago
create_secret_proxy_test.go Add `flux create secret proxy` command 11 months ago
create_secret_tls.go Migrate sourcesecret package to runtime/secrets APIs 3 weeks ago
create_secret_tls_test.go Remove TLS deprecated flags from `flux create secret` 11 months ago
create_source.go add a preview note for all non-bootstrap commands 2 years ago
create_source_bucket.go Add `--proxy-secret-ref` to `flux create source` commands 11 months ago
create_source_chart.go Add `(create|delete|export) source chart` commands 1 year ago
create_source_chart_test.go Add `(create|delete|export) source chart` commands 1 year ago
create_source_git.go Migrate sourcesecret package to runtime/secrets APIs 3 weeks ago
create_source_git_test.go add sparse checkout to cli 3 months ago
create_source_helm.go Migrate sourcesecret package to runtime/secrets APIs 3 weeks ago
create_source_helm_test.go Add OCI support to `create source helm` 3 years ago
create_source_oci.go Update CLI to OCIRepository v1 (GA) 3 months ago
create_source_oci_test.go Add flags for issuer/subject OCI signature verification 1 year ago
create_tenant.go Make golden tests pass 2 months ago
create_tenant_test.go Add tests and golden files for create tenant 2 months ago
create_test.go validate that object name adheres to RFC 1123 for flux create commands 4 years ago
debug.go Implement `flux debug helmrelease` command 8 months ago
debug_helmrelease.go Fix command debug hr not taking targetPath into account 6 months ago
debug_helmrelease_test.go Add missing copyright headers 8 months ago
debug_kustomization.go Add links to status docs in `flux debug` commands 8 months ago
debug_kustomization_test.go Implement `flux debug kustomization` command 8 months ago
delete.go add a preview note for all non-bootstrap commands 2 years ago
delete_alert.go Update all the references of NC v1beta2 to v1beta3 2 years ago
delete_alertprovider.go Update all the references of NC v1beta2 to v1beta3 2 years ago
delete_helmrelease.go Mark `HelmRelease` commands as GA 1 year ago
delete_image.go add a preview note for all non-bootstrap commands 2 years ago
delete_image_policy.go Promote image CLI commands to stable 2 months ago
delete_image_repository.go Promote image CLI commands to stable 2 months ago
delete_image_update.go Promote image CLI commands to stable 2 months ago
delete_kustomization.go add a preview note for all non-bootstrap commands 2 years ago
delete_receiver.go add a preview note for all non-bootstrap commands 2 years ago
delete_source.go add a preview note for all non-bootstrap commands 2 years ago
delete_source_bucket.go Promote `bucket` commands to GA 11 months ago
delete_source_chart.go Update CLI to OCIRepository v1 (GA) 3 months ago
delete_source_git.go add a preview note for all non-bootstrap commands 2 years ago
delete_source_helm.go Migrate `flux uninstall` to Helm Source API v1 1 year ago
delete_source_oci.go Update CLI to OCIRepository v1 (GA) 3 months ago
diff.go add a preview note for all non-bootstrap commands 2 years ago
diff_artifact.go Update CLI to OCIRepository v1 (GA) 3 months ago
diff_artifact_test.go Update to Kubernetes 1.33.0 and Go 1.24.0 4 months ago
diff_kustomization.go fix misplaced quotes 9 months ago
diff_kustomization_test.go Use normalize.UnstructuredList instead of ssa.SetNativeKindsDefaults 2 months ago
docgen.go Revert "Fix broken "edit this page" links in Flux CLI section" 3 years ago
envsubst.go Add `flux envsubst` command 1 year ago
envsubst_test.go Add `flux envsubst` command 1 year ago
events.go Update CLI to OCIRepository v1 (GA) 3 months ago
events_test.go Update tests to GA APIs 1 year ago
export.go add a preview note for all non-bootstrap commands 2 years ago
export_alert.go Update all the references of NC v1beta2 to v1beta3 2 years ago
export_alertprovider.go Update all the references of NC v1beta2 to v1beta3 2 years ago
export_helmrelease.go Mark `HelmRelease` commands as GA 1 year ago
export_image.go add a preview note for all non-bootstrap commands 2 years ago
export_image_policy.go Promote image CLI commands to stable 2 months ago
export_image_repository.go Promote image CLI commands to stable 2 months ago
export_image_update.go Promote image CLI commands to stable 2 months ago
export_kustomization.go add a preview note for all non-bootstrap commands 2 years ago
export_receiver.go add a preview note for all non-bootstrap commands 2 years ago
export_secret.go misc: remove unused bits of code 2 years ago
export_source.go add a preview note for all non-bootstrap commands 2 years ago
export_source_bucket.go Promote `bucket` commands to GA 11 months ago
export_source_chart.go Add `(create|delete|export) source chart` commands 1 year ago
export_source_git.go add a preview note for all non-bootstrap commands 2 years ago
export_source_helm.go Mark `source helm` commands as GA 1 year ago
export_source_oci.go Update CLI to OCIRepository v1 (GA) 3 months ago
export_test.go Add missing copyright headers 8 months ago
get.go Change error reporting in get.go from logger.Failure to fmt.Errorf to give non 0 exit code 4 months ago
get_alert.go Update all the references of NC v1beta2 to v1beta3 2 years ago
get_alertprovider.go Update all the references of NC v1beta2 to v1beta3 2 years ago
get_all.go Update to Kubernetes 1.33.0 and Go 1.24.0 4 months ago
get_helmrelease.go Mark `HelmRelease` commands as GA 1 year ago
get_image.go add a preview note for all non-bootstrap commands 2 years ago
get_image_all.go Promote image CLI commands to stable 2 months ago
get_image_policy.go Promote image CLI commands to stable 2 months ago
get_image_repository.go Promote image CLI commands to stable 2 months ago
get_image_update.go Promote image CLI commands to stable 2 months ago
get_kustomization.go misc: address `strings.Title` deprecation 2 years ago
get_receiver.go misc: address `strings.Title` deprecation 2 years ago
get_source.go add a preview note for all non-bootstrap commands 2 years ago
get_source_all.go Update CLI to OCIRepository v1 (GA) 3 months ago
get_source_bucket.go Promote `bucket` commands to GA 11 months ago
get_source_chart.go Mark `source helm` commands as GA 1 year ago
get_source_git.go misc: address `strings.Title` deprecation 2 years ago
get_source_helm.go Mark `source helm` commands as GA 1 year ago
get_source_oci.go Update CLI to OCIRepository v1 (GA) 3 months ago
get_test.go Change error reporting in get.go from logger.Failure to fmt.Errorf to give non 0 exit code 4 months ago
helmrelease.go Mark `HelmRelease` commands as GA 1 year ago
helmrelease_test.go e2e: update podinfo to version with newer APIs 2 years ago
image.go Update image-automation-controller API to v1beta2 1 year ago
image_test.go Add --interval and --reflect-digest flags to flux create image policy 3 months ago
install.go Migrate sourcesecret package to runtime/secrets APIs 3 weeks ago
install_test.go Generate image pull secret at install 1 year ago
kustomization.go Update GitRepository Receiver, and Kustomization to v1 2 years ago
kustomization_test.go Add support for passing multiple objects to suspend/resume commands 2 years ago
list.go add a preview note for all non-bootstrap commands 2 years ago
list_artifact.go Update CLI to OCIRepository v1 (GA) 3 months ago
log.go Add Warningf to logger interface amd impl 4 years ago
logs.go chore: remove repetitive word 1 year ago
logs_e2e_test.go misc: `sinceSeconds` -> `sinceDuration` 2 years ago
logs_unit_test.go Make `flux logs` more lenient 2 years ago
main.go update description of kubeconfig flags 2 years ago
main_e2e_test.go check readiness using kstatus 2 years ago
main_test.go Implement `flux debug kustomization` command 8 months ago
main_unit_test.go check readiness using kstatus 2 years ago
manifests.embed.go Add missing copyright headers 4 years ago
migrate.go Implement `flux migrate` command 2 weeks ago
object.go Add support for passing multiple objects to suspend/resume commands 2 years ago
oci.go refactor: cleanup GetArtifactRegistryCredentials error handling 2 months ago
pull.go add a preview note for all non-bootstrap commands 2 years ago
pull_artifact.go Update CLI to OCIRepository v1 (GA) 3 months ago
push.go add a preview note for all non-bootstrap commands 2 years ago
push_artifact.go Fix `flux push artifact` for insecure registries 1 month ago
readiness.go Update to Kubernetes 1.33.0 and Go 1.24.0 4 months ago
readiness_test.go check readiness using kstatus 2 years ago
receiver.go Update GitRepository Receiver, and Kustomization to v1 2 years ago
reconcile.go Update to Kubernetes 1.33.0 and Go 1.24.0 4 months ago
reconcile_helmrelease.go Update CLI to OCIRepository v1 (GA) 3 months ago
reconcile_image.go add a preview note for all non-bootstrap commands 2 years ago
reconcile_image_repository.go non-reconciliable & readiness of static objects 2 years ago
reconcile_image_updateauto.go Update image-automation-controller API to v1beta2 1 year ago
reconcile_kustomization.go Update CLI to OCIRepository v1 (GA) 3 months ago
reconcile_receiver.go non-reconciliable & readiness of static objects 2 years ago
reconcile_source.go add a preview note for all non-bootstrap commands 2 years ago
reconcile_source_bucket.go Promote `bucket` commands to GA 11 months ago
reconcile_source_chart.go Promote `bucket` commands to GA 11 months ago
reconcile_source_git.go non-reconciliable & readiness of static objects 2 years ago
reconcile_source_helm.go Update Helm Source APIs to v1 (GA) 1 year ago
reconcile_source_oci.go Update CLI to OCIRepository v1 (GA) 3 months ago
reconcile_with_source.go Update to Kubernetes 1.33.0 and Go 1.24.0 4 months ago
resume.go Update to Kubernetes 1.33.0 and Go 1.24.0 4 months ago
resume_alert.go Update all the references of NC v1beta2 to v1beta3 2 years ago
resume_alertprovider.go Update all the references of NC v1beta2 to v1beta3 2 years ago
resume_helmrelease.go Mark `HelmRelease` commands as GA 1 year ago
resume_image.go add a preview note for all non-bootstrap commands 2 years ago
resume_image_repository.go Add examples for resuming/suspending multiple objects 2 years ago
resume_image_updateauto.go Update image-automation-controller API to v1beta2 1 year ago
resume_kustomization.go Add examples for resuming/suspending multiple objects 2 years ago
resume_receiver.go Add examples for resuming/suspending multiple objects 2 years ago
resume_source.go add a preview note for all non-bootstrap commands 2 years ago
resume_source_bucket.go Promote `bucket` commands to GA 11 months ago
resume_source_chart.go Update Helm Source APIs to v1 (GA) 1 year ago
resume_source_git.go Add examples for resuming/suspending multiple objects 2 years ago
resume_source_helm.go Update Helm Source APIs to v1 (GA) 1 year ago
resume_source_oci.go Update CLI to OCIRepository v1 (GA) 3 months ago
source.go Update CLI to OCIRepository v1 (GA) 3 months ago
source_oci_test.go e2e: update podinfo to version with newer APIs 2 years ago
stats.go Update CLI to OCIRepository v1 (GA) 3 months ago
status.go check readiness using kstatus 2 years ago
suspend.go Add support for passing multiple objects to suspend/resume commands 2 years ago
suspend_alert.go Update all the references of NC v1beta2 to v1beta3 2 years ago
suspend_alertprovider.go Update all the references of NC v1beta2 to v1beta3 2 years ago
suspend_helmrelease.go Mark `HelmRelease` commands as GA 1 year ago
suspend_image.go add a preview note for all non-bootstrap commands 2 years ago
suspend_image_repository.go Add examples for resuming/suspending multiple objects 2 years ago
suspend_image_updateauto.go Update image-automation-controller API to v1beta2 1 year ago
suspend_kustomization.go Add examples for resuming/suspending multiple objects 2 years ago
suspend_receiver.go Add examples for resuming/suspending multiple objects 2 years ago
suspend_source.go add a preview note for all non-bootstrap commands 2 years ago
suspend_source_bucket.go Promote `bucket` commands to GA 11 months ago
suspend_source_chart.go Update Helm Source APIs to v1 (GA) 1 year ago
suspend_source_git.go Add examples for resuming/suspending multiple objects 2 years ago
suspend_source_helm.go Update Helm Source APIs to v1 (GA) 1 year ago
suspend_source_oci.go Update CLI to OCIRepository v1 (GA) 3 months ago
tag.go add a preview note for all non-bootstrap commands 2 years ago
tag_artifact.go Update CLI to OCIRepository v1 (GA) 3 months ago
trace.go Update CLI to OCIRepository v1 (GA) 3 months ago
trace_test.go Fix `flux trace` for HRs from `OCIRepository`s 3 months ago
tree.go add a preview note for all non-bootstrap commands 2 years ago
tree_kustomization.go Update `HelmRelease` API to v2 1 year ago
tree_kustomization_test.go Update Go to v1.17 4 years ago
uninstall.go Properly detect unexpected arguments 2 years ago
version.go show cluster instance name and version in flux check and flux version 2 years ago
version_test.go Fix controller version info 2 years ago
version_utils.go Add /v2 suffix to module name in preparation of 2.0.0 release 2 years ago
version_utils_test.go Update Go to v1.17 4 years ago