Skip to content

Commit

Permalink
Make db migrate seeding process configurable via values.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sandbergja committed Jan 26, 2022
1 parent 74e9a55 commit 3a30199
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions .helm/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,12 @@ def basic_install_flags(release_name, commarch_version)
flags << "--set=global.postgresql.postgresqlPassword=#{postgresql_password}"
flags << "--set=redis.password=#{new_password}"
flags << "--set=solr.authentication.adminPassword=#{new_password}"
flags << '--set=skipDbMigrateSeed=true' # Don't install DB, so that it can be created with pg_restore instead
end

def basic_upgrade_flags(release_name, commarch_version)
flags = basic_flags_for_install_and_upgrade(release_name, commarch_version)
flags << '--atomic'
flags << '--reuse-values'
flags << '--set=skipDbMigrateSeed=false' # Run db migrations on upgrade
end

def basic_flags_for_install_and_upgrade(release_name, commarch_version)
Expand Down
2 changes: 1 addition & 1 deletion .helm/values.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ redis:
replicaCount: 0
service:
type: LoadBalancer
skipHyraxEngineSeed: true
skipDbMigrateSeed: true
solr:
cloudEnabled: true
zookeeper:
Expand Down

0 comments on commit 3a30199

Please sign in to comment.