Skip to content

Commit

Permalink
chore: fix the client and sandbox postgres version
Browse files Browse the repository at this point in the history
  • Loading branch information
thegentlemanphysicist committed Sep 18, 2024
1 parent 3d5089a commit b342c6d
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 7 deletions.
31 changes: 29 additions & 2 deletions helm/grafana/.env.example
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

## Comment out the env vars for the production or sandbox environment
# Sandbox grafana
NAME=sso-grafana
NAMESPACE=
NAMESPACE=e4ca1d-tools
SSO_CLIENT_ID=
SSO_CLIENT_SECRET=

Expand All @@ -23,3 +24,29 @@ DS_KEYCLOAK_PROD_DATABASE=
DS_AGGREGATOR_USERNAME=
DS_AGGREGATOR_PASSWORD=
DS_AGGREGATOR_DATABASE=

# # production creds
# NAME=sso-grafana
# NAMESPACE=eb75ad-tools
# SSO_CLIENT_ID=
# SSO_CLIENT_SECRET=

# DS_SSO_LOGS_USERNAME=
# DS_SSO_LOGS_PASSWORD=
# DS_SSO_LOGS_DATABASE=

# DS_KEYCLOAK_DEV_USERNAME=
# DS_KEYCLOAK_DEV_PASSWORD=
# DS_KEYCLOAK_DEV_DATABASE=

# DS_KEYCLOAK_TEST_USERNAME=
# DS_KEYCLOAK_TEST_PASSWORD=
# DS_KEYCLOAK_TEST_DATABASE=

# DS_KEYCLOAK_PROD_USERNAME=
# DS_KEYCLOAK_PROD_PASSWORD=
# DS_KEYCLOAK_PROD_DATABASE=

# DS_AGGREGATOR_USERNAME=
# DS_AGGREGATOR_PASSWORD=
# DS_AGGREGATOR_DATABASE=
2 changes: 2 additions & 0 deletions helm/grafana/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ envsubst < net-policy-sso-keycloak.yaml | oc apply -f -

#### Update Helm Values

You will need to create a separate set of environment values for the sandbox and production grafana instances. The sandbox grafana instance uses the `dev production 4492` client for authentication and the production grafana instance uses the `prod production 4492` client.

- create `.env` from `.env.example` and fill the values

### Installing/Upgrading the Chart
Expand Down
10 changes: 5 additions & 5 deletions helm/grafana/values-e4ca1d-tools.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ grafana:
root_url: https://sso-grafana-sandbox.apps.gold.devops.gov.bc.ca
auth.generic_oauth:
name: SSO Pathfinder Sandbox
auth_url: https://dev.sandbox.loginproxy.gov.bc.ca/auth/realms/standard/protocol/openid-connect/auth
token_url: https://dev.sandbox.loginproxy.gov.bc.ca/auth/realms/standard/protocol/openid-connect/token
auth_url: https://dev.loginproxy.gov.bc.ca/auth/realms/standard/protocol/openid-connect/auth
token_url: https://dev.loginproxy.gov.bc.ca/auth/realms/standard/protocol/openid-connect/token

datasources:
datasources.yaml:
Expand Down Expand Up @@ -48,7 +48,7 @@ grafana:
maxOpenConns:
maxIdleConns: 2
connMaxLifetime: 14400
postgresVersion: 1400
postgresVersion: 1500
timescaledb: false
- name: SSO Keycloak Test
type: postgres
Expand All @@ -65,7 +65,7 @@ grafana:
maxOpenConns:
maxIdleConns: 2
connMaxLifetime: 14400
postgresVersion: 1400
postgresVersion: 1500
timescaledb: false
- name: SSO Keycloak Prod
type: postgres
Expand All @@ -82,7 +82,7 @@ grafana:
maxOpenConns:
maxIdleConns: 2
connMaxLifetime: 14400
postgresVersion: 1400
postgresVersion: 1500
timescaledb: false
- name: SSO Loki
type: loki
Expand Down

0 comments on commit b342c6d

Please sign in to comment.