Skip to content

Commit 44fcf85

Browse files
authored
K8s: Migrate subchart Postgres to cloudpirates/postgres from bitnami/postgresql (#3150)
Signed-off-by: Viet Nguyen Duc <nguyenducviet4496@gmail.com>
1 parent 9cc943b commit 44fcf85

7 files changed

Lines changed: 31 additions & 28 deletions

File tree

.github/workflows/release-chrome-versions.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ on:
3131
browser-versions:
3232
description: 'List browser version to build. E.g: [130, 131]'
3333
required: true
34-
default: '[95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148]'
34+
default: '[95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149]'
3535
push-image:
3636
description: 'Push image after testing successfully'
3737
required: true

.github/workflows/release-edge-versions.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ on:
3131
browser-versions:
3232
description: 'List browser version to build. E.g: [130, 131]'
3333
required: true
34-
default: '[114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148]'
34+
default: '[114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149]'
3535
push-image:
3636
description: 'Push image after testing successfully'
3737
required: true

charts/selenium-grid/CONFIGURATION.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ A Helm chart for creating a Selenium Grid Server in Kubernetes
1818

1919
| Repository | Name | Version |
2020
|------------|------|---------|
21-
| https://charts.bitnami.com/bitnami | postgresql | ^18.0.0 |
21+
| https://cloudpirates-io.github.io/helm-charts | postgresql(postgres) | ^0.19.0 |
2222
| https://cloudpirates-io.github.io/helm-charts | redis | ^0.30.0 |
2323
| https://jaegertracing.github.io/helm-charts | jaeger | ^4.0.0 |
2424
| https://kedacore.github.io/charts | keda | ^2.20.0 |
@@ -791,9 +791,9 @@ A Helm chart for creating a Selenium Grid Server in Kubernetes
791791
| kube-prometheus-stack | object | `{"cleanPrometheusOperatorObjectNames":true,"grafana":{"adminPassword":"admin","adminUser":"admin"},"nodeExporter":{"enabled":false},"prometheusOperator":{"admissionWebhooks":{"enabled":false,"patch":{"enabled":false}},"tls":{"enabled":false}}}` | Configuration for dependency chart kube-prometheus-stack |
792792
| jaeger | object | `{"jaeger":{"extraEnv":[{"name":"QUERY_BASE_PATH","value":"/jaeger"}]},"storage":{"type":"badger"}}` | Configuration for dependency chart jaeger |
793793
| postgresql.enabled | bool | `false` | Enable to install PostgreSQL along with Grid |
794-
| postgresql.image.repository | string | `"bitnamilegacy/postgresql"` | |
794+
| postgresql.persistence | object | `{"enabled":false}` | Enable persistence using Persistent Volume Claims |
795795
| postgresql.auth | object | `{"database":"selenium_sessions","password":"seluser","username":"seluser"}` | Authentication should be aligned with config in session map |
796-
| postgresql.primary.initdb.scripts | object | `{"init.sql":"CREATE TABLE IF NOT EXISTS sessions_map(\n session_ids varchar(256),\n session_caps text,\n session_uri varchar(256),\n session_stereotype text,\n session_start varchar(256)\n);\n"}` | Initdb scripts for PostgreSQL to create sessions_map table |
796+
| postgresql.initdb.scripts | object | `{"init.sql":"CREATE TABLE IF NOT EXISTS sessions_map(\n session_ids varchar(256),\n session_caps text,\n session_uri varchar(256),\n session_stereotype text,\n session_start varchar(256)\n);\n"}` | Initdb scripts for PostgreSQL to create sessions_map table |
797797
| redis.enabled | bool | `false` | Enable to install Redis along with Grid |
798798
| redis.architecture | string | `"standalone"` | Setup architecture |
799799
| redis.auth.enabled | bool | `false` | Disable authentication due to implementation still not supporting it |

charts/selenium-grid/Chart.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@ dependencies:
2222
version: ^86.0.0
2323
name: kube-prometheus-stack
2424
condition: monitoring.enabled, kube-prometheus-stack.enabled
25-
- repository: https://charts.bitnami.com/bitnami
26-
version: ^18.0.0
27-
name: postgresql
25+
- repository: https://cloudpirates-io.github.io/helm-charts
26+
version: ^0.19.0
27+
name: postgres
28+
alias: postgresql
2829
condition: postgresql.enabled
2930
- repository: https://cloudpirates-io.github.io/helm-charts
3031
version: ^0.30.0

charts/selenium-grid/values.yaml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2347,29 +2347,29 @@ jaeger:
23472347
storage:
23482348
type: badger
23492349

2350-
# Configuration for dependency chart PostgreSQL (README: https://artifacthub.io/packages/helm/bitnami/postgresql)
2350+
# Configuration for dependency chart PostgreSQL (README: https://artifacthub.io/packages/helm/cloudpirates/postgres)
23512351
postgresql:
23522352
# -- Enable to install PostgreSQL along with Grid
23532353
enabled: false
2354-
image:
2355-
repository: bitnamilegacy/postgresql
2354+
# -- Enable persistence using Persistent Volume Claims
2355+
persistence:
2356+
enabled: false
23562357
# -- Authentication should be aligned with config in session map
23572358
auth:
23582359
username: "seluser"
23592360
password: "seluser"
23602361
database: "selenium_sessions"
2361-
primary:
2362-
initdb:
2363-
# -- Initdb scripts for PostgreSQL to create sessions_map table
2364-
scripts:
2365-
init.sql: |
2366-
CREATE TABLE IF NOT EXISTS sessions_map(
2367-
session_ids varchar(256),
2368-
session_caps text,
2369-
session_uri varchar(256),
2370-
session_stereotype text,
2371-
session_start varchar(256)
2372-
);
2362+
initdb:
2363+
# -- Initdb scripts for PostgreSQL to create sessions_map table
2364+
scripts:
2365+
init.sql: |
2366+
CREATE TABLE IF NOT EXISTS sessions_map(
2367+
session_ids varchar(256),
2368+
session_caps text,
2369+
session_uri varchar(256),
2370+
session_stereotype text,
2371+
session_start varchar(256)
2372+
);
23732373
23742374
# Configuration for dependency chart Redis (README: https://artifacthub.io/packages/helm/cloudpirates/redis)
23752375
redis:

tests/build-backward-compatible/browser-matrix.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,23 @@
11
matrix:
22
browser:
33
'151':
4-
FIREFOX_VERSION: 151.0.1
4+
FIREFOX_VERSION: 151.0.4
55
FIREFOX_PLATFORMS: linux/amd64,linux/arm64
66
'150':
77
FIREFOX_VERSION: 150.0.3
88
FIREFOX_PLATFORMS: linux/amd64,linux/arm64
99
'149':
1010
FIREFOX_VERSION: 149.0.2
1111
FIREFOX_PLATFORMS: linux/amd64,linux/arm64
12-
CFT_VERSION: 149.0.7827.22
12+
CFT_VERSION: 149.0.7827.55
13+
CHROME_VERSION: google-chrome-stable=149.0.7827.102-1
14+
EDGE_VERSION: microsoft-edge-stable=149.0.4022.62-1
1315
'148':
1416
FIREFOX_VERSION: 148.0.2
1517
FIREFOX_PLATFORMS: linux/amd64,linux/arm64
1618
CFT_VERSION: 148.0.7778.178
17-
CHROME_VERSION: google-chrome-stable=148.0.7778.178-1
18-
EDGE_VERSION: microsoft-edge-stable=148.0.3967.83-1
19+
CHROME_VERSION: google-chrome-stable=148.0.7778.215-1
20+
EDGE_VERSION: microsoft-edge-stable=148.0.3967.96-1
1921
'147':
2022
FIREFOX_VERSION: 147.0.4
2123
FIREFOX_PLATFORMS: linux/amd64,linux/arm64

tests/build-backward-compatible/firefox-matrix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
matrix:
22
browser:
33
'151':
4-
FIREFOX_VERSION: 151.0.1
4+
FIREFOX_VERSION: 151.0.4
55
'150':
66
FIREFOX_VERSION: 150.0.3
77
'149':

0 commit comments

Comments
 (0)