Skip to content

Commit

Permalink
Upgrade all PostgREST images to 12.2.8 (#1150)
Browse files Browse the repository at this point in the history
For comments, examples, and docs, use the `:latest` tags. Everywhere
else, explicitly use `:v12.2.8`.

Except in `tembo-operator`, where the tests just will not pass. But
disable Grafana in the operator tests, it's not necessary.

Also fix the misspelling of `Authorization` in a test (and let the
linter reformat the relevant code).
  • Loading branch information
theory committed Feb 19, 2025
1 parent 7815f00 commit a4c9f9a
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion charts/tembo-operator/templates/crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ spec:
```yaml apiVersion: coredb.io/v1alpha1 kind: CoreDB metadata: name: test-db spec: trunk_installs: - name: pg_graphql version: 1.2.0 extensions: - name: pg_graphql locations: - database: postgres enabled: true
appServices: - name: postgrest image: postgrest/postgrest:v10.0.0 routing: # only expose /rest/v1 and /graphql/v1 - port: 3000 ingressPath: /rest/v1 middlewares: - my-headers - port: 3000 ingressPath: /graphql/v1 middlewares: - map-gql - my-headers middlewares: - customRequestHeaders: name: my-headers config: # removes auth header from request Authorization: "" Content-Profile: graphql Accept-Profile: graphql - stripPrefix: name: my-strip-prefix config: - /rest/v1 # reroute gql and rest requests - replacePathRegex: name: map-gql config: regex: \/graphql\/v1\/? replacement: /rpc/resolve env: - name: PGRST_DB_URI valueFromPlatform: ReadWriteConnection - name: PGRST_DB_SCHEMA value: "public, graphql" - name: PGRST_DB_ANON_ROLE value: postgres - name: PGRST_LOG_LEVEL value: info ```
appServices: - name: postgrest image: postgrest/postgrest:latest routing: # only expose /rest/v1 and /graphql/v1 - port: 3000 ingressPath: /rest/v1 middlewares: - my-headers - port: 3000 ingressPath: /graphql/v1 middlewares: - map-gql - my-headers middlewares: - customRequestHeaders: name: my-headers config: # removes auth header from request Authorization: "" Content-Profile: graphql Accept-Profile: graphql - stripPrefix: name: my-strip-prefix config: - /rest/v1 # reroute gql and rest requests - replacePathRegex: name: map-gql config: regex: \/graphql\/v1\/? replacement: /rpc/resolve env: - name: PGRST_DB_URI valueFromPlatform: ReadWriteConnection - name: PGRST_DB_SCHEMA value: "public, graphql" - name: PGRST_DB_ANON_ROLE value: postgres - name: PGRST_LOG_LEVEL value: info ```
properties:
args:
description: Defines the arguments to pass into the container if needed. You define this in the same manner as you would for all Kubernetes containers. See the [Kubernetes docs](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container).
Expand Down
2 changes: 1 addition & 1 deletion cp-client/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tembo-api-client"
version = "1.0.8"
version = "1.0.9"
authors = ["OpenAPI Generator team and contributors"]
description = "API client for Tembo Cloud's Platform API (api.tembo.io)"
# Override this license by providing a License Object in the OpenAPI.
Expand Down
4 changes: 2 additions & 2 deletions cp-client/src/models/app_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
use crate::models;
use serde::{Deserialize, Serialize};

/// AppService : AppService significantly extends the functionality of your Tembo Postgres instance by running tools and software built by the Postgres open source community. **Example**: This will configure and install a Postgrest container along side the Postgres instance, install pg_graphql extension, and configure the ingress routing to expose the Postgrest service. ```yaml apiVersion: coredb.io/v1alpha1 kind: CoreDB metadata: name: test-db spec: trunk_installs: - name: pg_graphql version: 1.2.0 extensions: - name: pg_graphql locations: - database: postgres enabled: true appServices: - name: postgrest image: postgrest/postgrest:v10.0.0 routing: # only expose /rest/v1 and /graphql/v1 - port: 3000 ingressPath: /rest/v1 middlewares: - my-headers - port: 3000 ingressPath: /graphql/v1 middlewares: - map-gql - my-headers middlewares: - customRequestHeaders: name: my-headers config: # removes auth header from request Authorization: \"\" Content-Profile: graphql Accept-Profile: graphql - stripPrefix: name: my-strip-prefix config: - /rest/v1 # reroute gql and rest requests - replacePathRegex: name: map-gql config: regex: /graphql/v1/? replacement: /rpc/resolve env: - name: PGRST_DB_URI valueFromPlatform: ReadWriteConnection - name: PGRST_DB_SCHEMA value: \"public, graphql\" - name: PGRST_DB_ANON_ROLE value: postgres - name: PGRST_LOG_LEVEL value: info ```
/// AppService : AppService significantly extends the functionality of your Tembo Postgres instance by running tools and software built by the Postgres open source community. **Example**: This will configure and install a Postgrest container along side the Postgres instance, install pg_graphql extension, and configure the ingress routing to expose the Postgrest service. ```yaml apiVersion: coredb.io/v1alpha1 kind: CoreDB metadata: name: test-db spec: trunk_installs: - name: pg_graphql version: 1.2.0 extensions: - name: pg_graphql locations: - database: postgres enabled: true appServices: - name: postgrest image: postgrest/postgrest:latest
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct AppService {
/// Defines the arguments to pass into the container if needed. You define this in the same manner as you would for all Kubernetes containers. See the [Kubernetes docs](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container).
Expand Down Expand Up @@ -86,7 +86,7 @@ pub struct AppService {
}

impl AppService {
/// AppService significantly extends the functionality of your Tembo Postgres instance by running tools and software built by the Postgres open source community. **Example**: This will configure and install a Postgrest container along side the Postgres instance, install pg_graphql extension, and configure the ingress routing to expose the Postgrest service. ```yaml apiVersion: coredb.io/v1alpha1 kind: CoreDB metadata: name: test-db spec: trunk_installs: - name: pg_graphql version: 1.2.0 extensions: - name: pg_graphql locations: - database: postgres enabled: true appServices: - name: postgrest image: postgrest/postgrest:v10.0.0 routing: # only expose /rest/v1 and /graphql/v1 - port: 3000 ingressPath: /rest/v1 middlewares: - my-headers - port: 3000 ingressPath: /graphql/v1 middlewares: - map-gql - my-headers middlewares: - customRequestHeaders: name: my-headers config: # removes auth header from request Authorization: \"\" Content-Profile: graphql Accept-Profile: graphql - stripPrefix: name: my-strip-prefix config: - /rest/v1 # reroute gql and rest requests - replacePathRegex: name: map-gql config: regex: /graphql/v1/? replacement: /rpc/resolve env: - name: PGRST_DB_URI valueFromPlatform: ReadWriteConnection - name: PGRST_DB_SCHEMA value: \"public, graphql\" - name: PGRST_DB_ANON_ROLE value: postgres - name: PGRST_LOG_LEVEL value: info ```
/// AppService significantly extends the functionality of your Tembo Postgres instance by running tools and software built by the Postgres open source community. **Example**: This will configure and install a Postgrest container along side the Postgres instance, install pg_graphql extension, and configure the ingress routing to expose the Postgrest service. ```yaml apiVersion: coredb.io/v1alpha1 kind: CoreDB metadata: name: test-db spec: trunk_installs: - name: pg_graphql version: 1.2.0 extensions: - name: pg_graphql locations: - database: postgres enabled: true appServices: - name: postgrest image: postgrest/postgrest:latest
pub fn new(image: String, name: String) -> AppService {
AppService {
args: None,
Expand Down
2 changes: 1 addition & 1 deletion tembo-cli/Cargo.lock

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

Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ services:


instance-2-restapi:
image: postgrest/postgrest:v10.0.0
image: postgrest/postgrest:latest

environment:
PGRST_DB_URI: "postgresql://postgres:postgres@instance-2:5432/postgres"
Expand Down
2 changes: 1 addition & 1 deletion tembo-cli/tests/local-app-services/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ services:
- "traefik.tcp.services.instance-1.loadbalancer.server.port=5432"

instance-1-postgrest:
image: postgrest/postgrest:v10.0.0
image: postgrest/postgrest:v12.2.8
environment:
PGRST_DB_URI: "postgresql://postgres:postgres@instance-1:5432/postgres"
PGRST_DB_SCHEMA: "public, graphql"
Expand Down
2 changes: 1 addition & 1 deletion tembo-stacks/src/apps/http.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: !http
appServices:
- image: postgrest/postgrest:v12.2.7
- image: postgrest/postgrest:v12.2.8
name: http
resources:
requests:
Expand Down
2 changes: 1 addition & 1 deletion tembo-stacks/src/apps/mq.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: !mq-api
appServices:
- image: postgrest/postgrest:v12.2.7
- image: postgrest/postgrest:v12.2.8
name: mq-api
routing:
- port: 3000
Expand Down
2 changes: 1 addition & 1 deletion tembo-stacks/src/apps/restapi.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: !restapi
appServices:
- image: postgrest/postgrest:v12.2.7
- image: postgrest/postgrest:v12.2.8
name: restapi
resources:
requests:
Expand Down
2 changes: 1 addition & 1 deletion tembo-stacks/src/stacks/specs/message_queue.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ images:
stack_version: 0.3.0
appServices:
- name: mq-api
image: postgrest/postgrest:v12.2.7
image: postgrest/postgrest:v12.2.8
routing:
- port: 3000
ingressPath: /pgmq/v1
Expand Down

0 comments on commit a4c9f9a

Please sign in to comment.