Skip to content

Dynamically apply the latest SQL schema creation script for the product version#28

Open
gary-archer wants to merge 3 commits into
mainfrom
feature/sql_resilience
Open

Dynamically apply the latest SQL schema creation script for the product version#28
gary-archer wants to merge 3 commits into
mainfrom
feature/sql_resilience

Conversation

@gary-archer

@gary-archer gary-archer commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

SQL RESILIENCE

Previously we had a fixed data-backup.sql script checked into the repository. We now:

  • Get the latest SQL schema creation script, as create-schema.sql from the Docker image
  • Use a fixed import-users.sql script with the test users

We copy both scripts to PostgreSQL's init location, and it applies them in alphabetical order.

WORKLOAD IDENTITY REFINEMENT

I also tweaked the code for Istio to get SPIRE identities, to better align with the officially documented approach, since we improved on the book's default implementation for the workload identity HOWTOs a short time ago.

TESTING

I tested the chapter 13 and chapter 10 deployments, to cover the changes.

@gary-archer gary-archer changed the title Get the latest SQL script for the product version rather than using a… Dynamically apply the latest SQL schema creation script for the product version Jun 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant