Skip to content

Commit

Permalink
POC: remove migration using clowdjob
Browse files Browse the repository at this point in the history
  • Loading branch information
psegedy committed Dec 5, 2023
1 parent 6320227 commit f2d85d1
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 333 deletions.
32 changes: 0 additions & 32 deletions deploy/clowdapp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -483,38 +483,6 @@ objects:
- {name: DELETE_UNUSED_DATA_LIMIT, value: '${DELETE_UNUSED_DATA_LIMIT}'}
- {name: ENABLE_UNUSED_DATA_DELETE, value: '${ENABLE_UNUSED_DATA_DELETE}'}

- name: migrate-system-package-data
activeDeadlineSeconds: ${{JOBS_TIMEOUT}}
disabled: ${{MIGRATE_SYSTEM_PACKAGE_DISABLED}}
concurrencyPolicy: Forbid
completions: 1
podSpec:
image: ${IMAGE}:${IMAGE_TAG_JOBS}
initContainers:
- name: check-for-db
image: ${IMAGE}:${IMAGE_TAG_DATABASE_ADMIN}
command:
- ./database_admin/check-upgraded.sh
env:
- {name: SCHEMA_MIGRATION, value: '${SCHEMA_MIGRATION}'}
command:
- ./scripts/entrypoint.sh
- job
- system_package_data_migration
env:
- {name: LOG_LEVEL, value: '${LOG_LEVEL_JOBS}'}
- {name: GIN_MODE, value: '${GIN_MODE}'}
- {name: DB_DEBUG, value: '${DB_DEBUG_JOBS}'}
- {name: DB_USER, value: vmaas_sync}
- {name: DB_PASSWD, valueFrom: {secretKeyRef: {name: patchman-engine-database-passwords,
key: vmaas-sync-database-password}}}
- {name: PACKAGE_CACHE_SIZE, value: '${PACKAGE_CACHE_SIZE}'}
- {name: PACKAGE_NAME_CACHE_SIZE, value: '${PACKAGE_NAME_CACHE_SIZE}'}
- {name: MAX_GOROUTINES, value: '${POC_MIGRATION_MAX_GOROUTINES}'}
resources:
limits: {cpu: '${RES_LIMIT_CPU_MIGRATE_JOB}', memory: '${RES_LIMIT_MEM_MIGRATE_JOB}'}
requests: {cpu: '${RES_REQUEST_CPU_MIGRATE_JOB}', memory: '${RES_REQUEST_MEM_MIGRATE_JOB}'}

database:
name: patchman
version: 12
Expand Down
3 changes: 0 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
"app/platform"
"app/tasks/caches"
"app/tasks/cleaning"
"app/tasks/migration"
"app/tasks/system_culling"
"app/tasks/vmaas_sync"
"app/turnpike"
Expand Down Expand Up @@ -71,7 +70,5 @@ func runJob(name string) {
cleaning.RunDeleteUnusedData()
case "packages_cache_refresh":
caches.RunPackageRefresh()
case "system_package_data_migration":
migration.RunSystemPackageDataMigration()
}
}
298 changes: 0 additions & 298 deletions tasks/migration/migrate_system_package_data.go

This file was deleted.

0 comments on commit f2d85d1

Please sign in to comment.