Skip to content

Commit

Permalink
Merge pull request #1540 from tjkirch/archive-old-migrations
Browse files Browse the repository at this point in the history
Archive old migrations
  • Loading branch information
tjkirch authored Apr 30, 2021
2 parents 2587bda + f5a48c5 commit bc364dd
Show file tree
Hide file tree
Showing 61 changed files with 2 additions and 234 deletions.
4 changes: 2 additions & 2 deletions packages/os/os.spec
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ mkdir bin
# For static builds, first we find the migrations in the source tree. We assume the directory name
# is the same as the crate name.
migrations=()
for migration in $(find %{_builddir}/sources/api/migration/migrations/* -mindepth 1 -maxdepth 1 -type d); do
for migration in $(find %{_builddir}/sources/api/migration/migrations/v[0-9]* -mindepth 1 -maxdepth 1 -type d); do
migrations+=("-p $(basename ${migration})")
done
# Store the output so we can print it after waiting for the backgrounded job.
Expand Down Expand Up @@ -327,7 +327,7 @@ for p in growpart ; do
done

install -d %{buildroot}%{_cross_datadir}/migrations
for version_path in %{_builddir}/sources/api/migration/migrations/*; do
for version_path in %{_builddir}/sources/api/migration/migrations/v[0-9]*; do
[ -e "${version_path}" ] || continue
for migration_path in "${version_path}"/*; do
[ -e "${migration_path}" ] || continue
Expand Down
203 changes: 0 additions & 203 deletions sources/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 0 additions & 29 deletions sources/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,35 +24,6 @@ members = [
"api/shibaken",

# "api/migration/migrations/vX.Y.Z/...
"api/migration/migrations/v0.3.2/migrate-admin-container-v0-5-0",
"api/migration/migrations/v0.4.1/add-version-lock-ignore-waves",
"api/migration/migrations/v0.4.1/pivot-repo-2020-07-07",
"api/migration/migrations/v0.5.0/migrate-admin-container-v0-5-2",
"api/migration/migrations/v0.5.0/migrate-control-container-v0-4-1",
"api/migration/migrations/v0.5.0/add-cluster-domain",
"api/migration/migrations/v1.0.0/ecr-helper-admin",
"api/migration/migrations/v1.0.0/ecr-helper-control",
"api/migration/migrations/v1.0.2/add-enable-spot-instance-draining",
"api/migration/migrations/v1.0.3/add-sysctl",
"api/migration/migrations/v1.0.5/add-lockdown",
"api/migration/migrations/v1.0.5/sysctl-subcommand",
"api/migration/migrations/v1.0.5/add-user-data",
"api/migration/migrations/v1.0.5/add-network-settings",
"api/migration/migrations/v1.0.5/add-proxy-restart",
"api/migration/migrations/v1.0.5/add-proxy-services",
"api/migration/migrations/v1.0.6/metricdog-init",
"api/migration/migrations/v1.0.6/add-static-pods",
"api/migration/migrations/v1.0.6/kubelet-standalone-tls-settings",
"api/migration/migrations/v1.0.6/kubelet-standalone-tls-services",
"api/migration/migrations/v1.0.6/control-container-v0-4-2",
"api/migration/migrations/v1.0.6/add-shibaken",
"api/migration/migrations/v1.0.6/admin-container-v0-6-0",
"api/migration/migrations/v1.0.8/kubelet-eviction-hard",
"api/migration/migrations/v1.0.8/kubelet-unsafe-sysctl-kube-reserved",
"api/migration/migrations/v1.0.8/proxy-affect-host-containers",
"api/migration/migrations/v1.0.8/control-container-v0-5-0",
"api/migration/migrations/v1.0.8/admin-container-v0-7-0",
"api/migration/migrations/v1.0.8/add-bootstrap-containers",
"api/migration/migrations/v1.1.0/kubelet-server-tls-bootstrap",
"api/migration/migrations/v1.1.0/kubelet-cloud-provider",
"api/migration/migrations/v1.1.0/kubelet-registry-qps-registry-burst",
Expand Down

0 comments on commit bc364dd

Please sign in to comment.