Skip to content

Commit

Permalink
fix(oauth2): allow to override config (#912)
Browse files Browse the repository at this point in the history
* fix(oauth2): allow to override config

* lint
  • Loading branch information
Julien Bouquillon committed Feb 10, 2022
1 parent ee95eb9 commit eb67f77
Show file tree
Hide file tree
Showing 21 changed files with 567 additions and 461 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
/utils
coverage
node_modules
*.test.ts
2 changes: 1 addition & 1 deletion e2e/kitchen-sink/__tests__/__snapshots__/multihost.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ spec:
path: /healthz
port: http
periodSeconds: 10
initialDelaySeconds: 30
successThreshold: 1
timeoutSeconds: 5
initialDelaySeconds: 30
envFrom:
- secretRef:
name: azure-pg-user-e2e-branch
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,9 @@ spec:
path: /healthz
port: http
periodSeconds: 10
initialDelaySeconds: 30
successThreshold: 1
timeoutSeconds: 5
initialDelaySeconds: 30
envFrom:
- secretRef:
name: azure-pg-user-e2e-branch
Expand Down Expand Up @@ -558,9 +558,9 @@ spec:
path: /healthz
port: http
periodSeconds: 10
initialDelaySeconds: 30
successThreshold: 1
timeoutSeconds: 5
initialDelaySeconds: 30
envFrom:
- secretRef:
name: azure-pg-user-e2e-branch
Expand Down Expand Up @@ -863,9 +863,9 @@ spec:
path: /healthz
port: http
periodSeconds: 10
initialDelaySeconds: 30
successThreshold: 1
timeoutSeconds: 5
initialDelaySeconds: 30
envFrom:
- secretRef:
name: azure-pg-user-e2e-branch
Expand Down Expand Up @@ -1203,9 +1203,9 @@ spec:
path: /healthz
port: http
periodSeconds: 10
initialDelaySeconds: 30
successThreshold: 1
timeoutSeconds: 5
initialDelaySeconds: 30
envFrom:
- secretRef:
name: azure-pg-user-e2e-branch
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,9 @@ spec:
path: /healthz
port: http
periodSeconds: 10
initialDelaySeconds: 30
successThreshold: 1
timeoutSeconds: 5
initialDelaySeconds: 30
envFrom:
- secretRef:
name: azure-pg-user-e2e-branch
Expand Down Expand Up @@ -569,9 +569,9 @@ spec:
path: /healthz
port: http
periodSeconds: 10
initialDelaySeconds: 30
successThreshold: 1
timeoutSeconds: 5
initialDelaySeconds: 30
envFrom:
- secretRef:
name: azure-pg-user-e2e-branch
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,9 @@ spec:
path: /healthz
port: http
periodSeconds: 10
initialDelaySeconds: 30
successThreshold: 1
timeoutSeconds: 5
initialDelaySeconds: 30
envFrom:
- secretRef:
name: azure-pg-user-e2e-branch
Expand Down Expand Up @@ -569,9 +569,9 @@ spec:
path: /healthz
port: http
periodSeconds: 10
initialDelaySeconds: 30
successThreshold: 1
timeoutSeconds: 5
initialDelaySeconds: 30
envFrom:
- secretRef:
name: azure-pg-user-e2e-branch
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ spec:
path: /healthz
port: http
periodSeconds: 10
initialDelaySeconds: 30
successThreshold: 1
timeoutSeconds: 5
initialDelaySeconds: 30
envFrom:
- secretRef:
name: azure-pg-user-e2e-branch
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ spec:
path: /healthz
port: http
periodSeconds: 10
initialDelaySeconds: 30
successThreshold: 1
timeoutSeconds: 5
initialDelaySeconds: 30
envFrom:
- secretRef:
name: azure-pg-user-e2e-branch
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ spec:
path: /healthz
port: http
periodSeconds: 10
initialDelaySeconds: 30
successThreshold: 1
timeoutSeconds: 5
initialDelaySeconds: 30
envFrom:
- secretRef:
name: azure-pg-user
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ spec:
path: /healthz
port: http
periodSeconds: 10
initialDelaySeconds: 30
successThreshold: 1
timeoutSeconds: 5
initialDelaySeconds: 30
envFrom:
- secretRef:
name: azure-pg-user
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ spec:
path: /healthz
port: http
periodSeconds: 10
initialDelaySeconds: 30
successThreshold: 1
timeoutSeconds: 5
initialDelaySeconds: 30
envFrom:
- secretRef:
name: azure-pg-user
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ spec:
path: /healthz
port: http
periodSeconds: 10
initialDelaySeconds: 30
successThreshold: 1
timeoutSeconds: 5
initialDelaySeconds: 30
envFrom:
- secretRef:
name: azure-pg-user
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ spec:
path: /healthz
port: http
periodSeconds: 10
initialDelaySeconds: 30
successThreshold: 1
timeoutSeconds: 5
initialDelaySeconds: 30
envFrom:
- secretRef:
name: azure-pg-user-e2e-branch
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ spec:
path: /healthz
port: http
periodSeconds: 10
initialDelaySeconds: 30
successThreshold: 1
timeoutSeconds: 5
initialDelaySeconds: 30
envFrom:
- secretRef:
name: azure-pg-user-e2e-branch
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ spec:
path: /healthz
port: http
periodSeconds: 10
initialDelaySeconds: 30
successThreshold: 1
timeoutSeconds: 5
initialDelaySeconds: 30
envFrom:
- secretRef:
name: azure-pg-user
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ spec:
path: /healthz
port: http
periodSeconds: 10
initialDelaySeconds: 30
successThreshold: 1
timeoutSeconds: 5
initialDelaySeconds: 30
envFrom:
- secretRef:
name: azure-pg-user
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ spec:
path: /healthz
port: http
periodSeconds: 10
initialDelaySeconds: 30
successThreshold: 1
timeoutSeconds: 5
initialDelaySeconds: 30
envFrom:
- secretRef:
name: azure-pg-user
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ spec:
path: /healthz
port: http
periodSeconds: 10
initialDelaySeconds: 30
successThreshold: 1
timeoutSeconds: 5
initialDelaySeconds: 30
envFrom:
- secretRef:
name: azure-pg-user
Expand Down
8 changes: 5 additions & 3 deletions src/components/hasura/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@ const hasuraConfig: Partial<AppConfig> = {
},
},
startupProbe: {
// wait 30 sec and up to 20*10sec to start
successThreshold: 1,
failureThreshold: 20,

initialDelaySeconds: 30,

periodSeconds: 10,
// wait 30 sec and up to 20*10sec to start
successThreshold: 1,
timeoutSeconds: 5,
initialDelaySeconds: 30,
},
},
containerPort: 80,
Expand Down

0 comments on commit eb67f77

Please sign in to comment.