Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Commit

Permalink
Add helm secrets for postgresql-ha
Browse files Browse the repository at this point in the history
  • Loading branch information
iamvigneshwars committed Mar 8, 2024
1 parent a8fd852 commit e22e963
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 60 deletions.
15 changes: 0 additions & 15 deletions charts/xchemlab/templates/application-secret-sealed.yaml

This file was deleted.

9 changes: 9 additions & 0 deletions charts/xchemlab/templates/application-secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: v1
kind: Secret
type: Opaque
metadata:
name: application-passwords
namespace: xchemlab
data:
usernames: xchemlab
passwords: {{ randAlphaNum 24 | b64enc }}
15 changes: 0 additions & 15 deletions charts/xchemlab/templates/init-script.yaml

This file was deleted.

14 changes: 0 additions & 14 deletions charts/xchemlab/templates/pgpool-secret-sealed.yaml

This file was deleted.

8 changes: 8 additions & 0 deletions charts/xchemlab/templates/pgpool-secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: v1
kind: Secret
type: Opaque
metadata:
name: pgpool-passwords
namespace: xchemlab
data:
admin-password: {{ randAlphaNum 24 | b64enc }}
15 changes: 0 additions & 15 deletions charts/xchemlab/templates/postgres-secret-sealed.yaml

This file was deleted.

9 changes: 9 additions & 0 deletions charts/xchemlab/templates/postgres-secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: v1
kind: Secret
type: Opaque
metadata:
name: postgres-passwords
namespace: xchemlab
data:
password: {{ randAlphaNum 24 | b64enc }}
repmgr-password: {{ randAlphaNum 24 | b64enc }}
8 changes: 7 additions & 1 deletion charts/xchemlab/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,13 @@ postgresql-ha:
limits:
cpu: 2
memory: 2Gi
initdbScripts: init-script
initdbScripts:

Check failure on line 170 in charts/xchemlab/values.yaml

View workflow job for this annotation

GitHub Actions / lint

170:19 [trailing-spaces] trailing spaces
db-init.sql: |
SELECT 'CREATE DATABASE compound_library' WHERE NOT EXISTS (SELECT FROM pg_database WHERE datname = 'compound_library')\gexec;
SELECT 'CREATE DATABASE compound_soaking' WHERE NOT EXISTS (SELECT FROM pg_database WHERE datname = 'compound_soaking')\gexec;
SELECT 'CREATE DATABASE crystal_library' WHERE NOT EXISTS (SELECT FROM pg_database WHERE datname = 'crystal_library')\gexec;
SELECT 'CREATE DATABASE targeting' WHERE NOT EXISTS (SELECT FROM pg_database WHERE datname = 'targeting')\gexec;
SELECT 'CREATE DATABASE pin_packing' WHERE NOT EXISTS (SELECT FROM pg_database WHERE datname = 'pin_packing')\gexec;
pgpool:
existingSecret: pgpool-passwords
Expand Down

0 comments on commit e22e963

Please sign in to comment.