@@ -2,8 +2,13 @@ apiVersion: postgres-operator.crunchydata.com/v1beta1
22kind : PGAdmin 
33metadata :
44  name : rhino 
5-   namespace : postgres-operator 
65spec :
6+   users :
7+ 8+       role : Administrator 
9+       passwordRef :
10+         name : pgadmin-password-secret 
11+         key : rhino-password 
712  dataVolumeClaimSpec :
813    accessModes :
914    - " ReadWriteOnce" 
@@ -16,20 +21,22 @@ spec:
1621      postgresClusterSelector : {} 
1722  config :
1823    settings :
19-       AUTHENTICATION_SOURCES : ['oauth2', 'internal'] 
20-       OAUTH2_CONFIG :
21-         - OAUTH2_NAME : " google" 
22-           OAUTH2_DISPLAY_NAME : " Google" 
23-           OAUTH2_CLIENT_ID : " XXXXXXX" 
24-           OAUTH2_CLIENT_SECRET : " XXXXXXX" 
25-           OAUTH2_TOKEN_URL : " https://oauth2.googleapis.com/token" 
26-           OAUTH2_AUTHORIZATION_URL : " https://accounts.google.com/o/oauth2/auth" 
27-           OAUTH2_API_BASE_URL : " https://openidconnect.googleapis.com/v1/" 
28-           OAUTH2_SERVER_METADATA_URL : " https://accounts.google.com/.well-known/openid-configuration" 
29-           OAUTH2_SCOPE : " openid email profile" 
30-           OAUTH2_USERINFO_ENDPOINT : " userinfo" 
31-           OAUTH2_SSL_CERT_VERIFICATION : " False" #  for testing purposes
32-           OAUTH2_BUTTON_COLOR : " red" 
33-       OAUTH2_AUTO_CREATE_USER  : " True" 
34-       DEBUG : " True" #  for testing purposes
35-       SERVER_MODE : " True" 
24+       AUTHENTICATION_SOURCES : ['internal'] 
25+       #  Uncomment DEBUG to enable debug logging in pgAdmin
26+       #  DEBUG: "True"
27+       #  Configure OAUTH by setting the following *AND* adding
28+       #  `oauth` to AUTHENTICATION_SOURCES
29+       # OAUTH2_CONFIG:
30+       #   - OAUTH2_NAME: "google"
31+       #     OAUTH2_DISPLAY_NAME: "Google"
32+       #     OAUTH2_CLIENT_ID: "XXXXXXX"
33+       #     OAUTH2_CLIENT_SECRET: "XXXXXXX"
34+       #     OAUTH2_TOKEN_URL: "https://oauth2.googleapis.com/token"
35+       #     OAUTH2_AUTHORIZATION_URL: "https://accounts.google.com/o/oauth2/auth"
36+       #     OAUTH2_API_BASE_URL: "https://openidconnect.googleapis.com/v1/"
37+       #     OAUTH2_SERVER_METADATA_URL: "https://accounts.google.com/.well-known/openid-configuration"
38+       #     OAUTH2_SCOPE: "openid email profile"
39+       #     OAUTH2_USERINFO_ENDPOINT: "userinfo"
40+       #     OAUTH2_SSL_CERT_VERIFICATION: "False" # for testing purposes
41+       #     OAUTH2_BUTTON_COLOR: "red"   
42+       # OAUTH2_AUTO_CREATE_USER : "True"
0 commit comments