Skip to content

Commit 802ccc5

Browse files
authored
Fix objstore secret field emission and set openfga datastore conn limits (#1276)
Signed-off-by: Imtiaz Uddin <imtiaz@appscode.com>
1 parent 318acca commit 802ccc5

3 files changed

Lines changed: 24 additions & 7 deletions

File tree

charts/ace/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ The following table lists the configurable parameters of the `ace` chart and the
6565
| s3proxy.enabled | | <code>false</code> |
6666
| openfga.enabled | | <code>false</code> |
6767
| openfga.datastoreURI | | <code>""</code> |
68+
| openfga.datastore.maxOpenConns | | <code>20</code> |
69+
| openfga.datastore.connMaxIdleTime | | <code>"10m"</code> |
6870
| pgoutbox.enabled | | <code>false</code> |
6971
| outbox-syncer.enabled | | <code>false</code> |
7072
| postgres-alerts.enabled | | <code>true</code> |

charts/ace/templates/platform/objstore-cred.yaml

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,33 @@ metadata:
1212
type: Opaque
1313
stringData:
1414
{{- with $objstore.s3 }}
15-
AWS_ACCESS_KEY_ID: '{{ .AWS_ACCESS_KEY_ID }}'
16-
AWS_SECRET_ACCESS_KEY: '{{ .AWS_SECRET_ACCESS_KEY }}'
17-
ca.crt: {{ .CA_CERT_DATA | default "" | quote }}
15+
{{- with .AWS_ACCESS_KEY_ID }}
16+
AWS_ACCESS_KEY_ID: {{ . | quote }}
17+
{{- end }}
18+
{{- with .AWS_SECRET_ACCESS_KEY }}
19+
AWS_SECRET_ACCESS_KEY: {{ . | quote }}
20+
{{- end }}
21+
{{- with .CA_CERT_DATA }}
22+
ca.crt: {{ . | quote }}
23+
{{- end }}
1824
{{- with .AWS_REGION }}
19-
AWS_REGION: '{{ . }}'
25+
AWS_REGION: {{ . | quote }}
2026
{{- end }}
2127
{{- end }}
2228

2329
{{- with $objstore.azure }}
24-
AZURE_ACCOUNT_NAME: '{{ .AZURE_ACCOUNT_NAME }}'
25-
AZURE_ACCOUNT_KEY: '{{ .AZURE_ACCOUNT_KEY }}'
30+
{{- with .AZURE_ACCOUNT_NAME }}
31+
AZURE_ACCOUNT_NAME: {{ . | quote }}
32+
{{- end }}
33+
{{- with .AZURE_ACCOUNT_KEY }}
34+
AZURE_ACCOUNT_KEY: {{ . | quote }}
35+
{{- end }}
2636
{{- end }}
2737

2838
{{- with $objstore.gcs }}
29-
sa.json: {{ .GOOGLE_SERVICE_ACCOUNT_JSON_KEY | default "" | quote }}
39+
{{- with .GOOGLE_SERVICE_ACCOUNT_JSON_KEY }}
40+
sa.json: {{ . | quote }}
41+
{{- end }}
3042
{{- end }}
3143

3244
{{- end }}

charts/ace/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ s3proxy:
7979
openfga:
8080
enabled: false
8181
datastoreURI: ""
82+
datastore:
83+
maxOpenConns: 20
84+
connMaxIdleTime: "10m"
8285
## configured in lib-selfhost
8386
# securityContext: # +doc-gen:break
8487
# allowPrivilegeEscalation: false

0 commit comments

Comments
 (0)