Skip to content

Conversation

@theory
Copy link
Contributor

@theory theory commented Apr 10, 2025

Add the uses_postgres_image() method to Config in the tembo-pod-init package. Like the method with the same name in CoreDBSpec in tembo-operator, the method returns true when the image is a base image and false when it's not.

Also add image_pull_policy(), which returns returns "Always" when the image name is postgres and its tag includes a Postgres major version and OS name. This ensures that on every pod init, it will pull the latest image for that OS and Postgres version. For all other cases it only pulls "IfNotExists".

Increment tembo-pod-stacks to v0.2.1. Closes TEM-3531.

Add the `uses_postgres_image()` method to `Config` in the
`tembo-pod-init` package. Like the method with the same name in
`CoreDBSpec` in `tembo-operator`, the method returns true when the image
is a base image and false when it's not.

Also add `image_pull_policy()`, which returns returns "Always" when the
image name is `postgres` and its tag includes a Postgres major version
and OS name. This ensures that on every pod init, it will pull the
latest image for that OS and Postgres version. For all other cases it
only pulls "IfNotExists".

Increment tembo-pod-stacks to v0.2.1.
@theory theory self-assigned this Apr 10, 2025
@theory theory marked this pull request as ready for review April 10, 2025 20:27
@theory theory merged commit d099cd0 into main Apr 10, 2025
8 checks passed
@theory theory deleted the always-pull branch April 10, 2025 20:36
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.

3 participants