Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pgaudit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ spec:
name: cluster-pgaudit
extensions:
- name: pgaudit
version: '18.0'
```

### 3. Verify installation
Expand Down
1 change: 1 addition & 0 deletions pgvector/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ spec:
name: cluster-pgvector
extensions:
- name: vector
version: '0.8.1'
```

### 3. Verify installation
Expand Down
1 change: 1 addition & 0 deletions postgis/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ spec:
name: cluster-postgis
extensions:
- name: postgis
version: '3.6.1'
- name: postgis_raster
- name: postgis_sfcgal
- name: fuzzystrmatch
Expand Down
16 changes: 9 additions & 7 deletions postgis/test/check-extension.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ spec:
containers:
- name: data-test
env:
- name: EXT_VERSION
value: ($values.version)
- name: DB_URI
valueFrom:
secretKeyRef:
Expand All @@ -20,11 +22,11 @@ spec:
- |
set -e
DB_URI=$(echo $DB_URI | sed "s|/\*|/|")
test "$(psql "$DB_URI" -tAc "SELECT EXISTS (SELECT FROM pg_catalog.pg_extension WHERE extname = 'postgis')" -q)" = "t"
test "$(psql "$DB_URI" -tAc "SELECT EXISTS (SELECT FROM pg_catalog.pg_extension WHERE extname = 'postgis_raster')" -q)" = "t"
test "$(psql "$DB_URI" -tAc "SELECT EXISTS (SELECT FROM pg_catalog.pg_extension WHERE extname = 'postgis_sfcgal')" -q)" = "t"
test "$(psql "$DB_URI" -tAc "SELECT EXISTS (SELECT FROM pg_catalog.pg_extension WHERE extname = 'fuzzystrmatch')" -q)" = "t"
test "$(psql "$DB_URI" -tAc "SELECT EXISTS (SELECT FROM pg_catalog.pg_extension WHERE extname = 'address_standardizer')" -q)" = "t"
test "$(psql "$DB_URI" -tAc "SELECT EXISTS (SELECT FROM pg_catalog.pg_extension WHERE extname = 'address_standardizer_data_us')" -q)" = "t"
test "$(psql "$DB_URI" -tAc "SELECT EXISTS (SELECT FROM pg_catalog.pg_extension WHERE extname = 'postgis_tiger_geocoder')" -q)" = "t"
test "$(psql "$DB_URI" -tAc "SELECT EXISTS (SELECT FROM pg_catalog.pg_extension WHERE extname = 'postgis_topology')" -q)" = "t"
test "$(psql "$DB_URI" -tAc "SELECT EXISTS (SELECT FROM pg_catalog.pg_extension WHERE extname = 'postgis' AND extversion = '${EXT_VERSION}')" -q)" = "t"
test "$(psql "$DB_URI" -tAc "SELECT EXISTS (SELECT FROM pg_catalog.pg_extension WHERE extname = 'postgis_raster' AND extversion = '${EXT_VERSION}')" -q)" = "t"
test "$(psql "$DB_URI" -tAc "SELECT EXISTS (SELECT FROM pg_catalog.pg_extension WHERE extname = 'postgis_sfcgal' AND extversion = '${EXT_VERSION}')" -q)" = "t"
test "$(psql "$DB_URI" -tAc "SELECT EXISTS (SELECT FROM pg_catalog.pg_extension WHERE extname = 'address_standardizer' AND extversion = '${EXT_VERSION}')" -q)" = "t"
test "$(psql "$DB_URI" -tAc "SELECT EXISTS (SELECT FROM pg_catalog.pg_extension WHERE extname = 'address_standardizer_data_us' AND extversion = '${EXT_VERSION}')" -q)" = "t"
test "$(psql "$DB_URI" -tAc "SELECT EXISTS (SELECT FROM pg_catalog.pg_extension WHERE extname = 'postgis_tiger_geocoder' AND extversion = '${EXT_VERSION}')" -q)" = "t"
test "$(psql "$DB_URI" -tAc "SELECT EXISTS (SELECT FROM pg_catalog.pg_extension WHERE extname = 'postgis_topology' AND extversion = '${EXT_VERSION}')" -q)" = "t"
1 change: 1 addition & 0 deletions postgis/test/database.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ spec:
name: ($values.name)
extensions:
- name: ($values.sql_name)
version: ($values.version)
- name: postgis_raster
- name: postgis_sfcgal
- name: fuzzystrmatch
Expand Down
6 changes: 4 additions & 2 deletions test/check-extension.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ spec:
env:
- name: EXT_SQL_NAME
value: ($values.sql_name)
- name: EXT_VERSION
value: ($values.version)
- name: DB_URI
valueFrom:
secretKeyRef:
Expand All @@ -22,5 +24,5 @@ spec:
- |
set -e
DB_URI=$(echo $DB_URI | sed "s|/\*|/|")
test "$(psql "$DB_URI" -tAc "SELECT EXISTS (SELECT FROM pg_catalog.pg_extension WHERE extname = '${EXT_SQL_NAME}')" -q)" = "t"
echo "Extension '${EXT_SQL_NAME}' is installed!"
test "$(psql "$DB_URI" -tAc "SELECT EXISTS (SELECT FROM pg_catalog.pg_extension WHERE extname = '${EXT_SQL_NAME}' AND extversion = '${EXT_VERSION}')" -q)" = "t"
echo "Extension '${EXT_SQL_NAME} v${EXT_VERSION}' is installed!"
1 change: 1 addition & 0 deletions test/database.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ spec:
name: ($values.name)
extensions:
- name: ($values.sql_name)
version: ($values.version)
Loading