Skip to content

Commit

Permalink
Merge pull request #133 from openfga/list-users
Browse files Browse the repository at this point in the history
chore: upgrading to v1.5.4 for `ListUsers` API support
  • Loading branch information
willvedd authored May 31, 2024
2 parents 40ea4e1 + cb2c391 commit bac6624
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 3 deletions.
4 changes: 2 additions & 2 deletions charts/openfga/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: openfga
description: A Kubernetes Helm chart for the OpenFGA project.

type: application
version: 0.2.4
appVersion: "v1.5.3"
version: 0.2.5
appVersion: "v1.5.4"

home: "https://openfga.github.io/helm-charts"
icon: https://github.com/openfga/community/raw/main/brand-assets/icon/color/openfga-icon-color.svg
Expand Down
25 changes: 25 additions & 0 deletions charts/openfga/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,21 @@ spec:
- name: OPENFGA_DATASTORE_CONN_MAX_LIFETIME
value: "{{ .Values.datastore.connMaxLifetime }}"
{{- end }}

{{- if .Values.maxConcurrentReadsForCheck }}
- name: OPENFGA_MAX_CONCURRENT_READS_FOR_CHECK
value: "{{ .Values.maxConcurrentReadsForCheck }}"
{{- end }}

{{- if .Values.maxConcurrentReadsForListObjects }}
- name: OPENFGA_MAX_CONCURRENT_READS_FOR_LIST_OBJECTS
value: "{{ .Values.maxConcurrentReadsForListObjects }}"
{{- end }}

{{- if .Values.maxConcurrentReadsForListUsers }}
- name: OPENFGA_MAX_CONCURRENT_READS_FOR_LIST_USERS
value: "{{ .Values.maxConcurrentReadsForListUsers }}"
{{- end }}

{{- if .Values.experimentals }}
- name: OPENFGA_EXPERIMENTALS
Expand Down Expand Up @@ -258,6 +273,16 @@ spec:
value: "{{ .Values.listObjectsMaxResults }}"
{{- end }}

{{- if .Values.listUsersDeadline }}
- name: OPENFGA_LIST_USERS_DEADLINE
value: "{{ .Values.listUsersDeadline }}"
{{- end }}

{{- if .Values.listUsersMaxResults }}
- name: OPENFGA_LIST_USERS_MAX_RESULTS
value: "{{ .Values.listUsersMaxResults }}"
{{- end }}

{{- if .Values.checkQueryCache.enabled }}
- name: OPENFGA_CHECK_QUERY_CACHE_ENABLED
value: "{{ .Values.checkQueryCache.enabled }}"
Expand Down
35 changes: 34 additions & 1 deletion charts/openfga/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,12 @@
"experimentals": {
"type": "array",
"description": "a list of experimental features to enable",
"default": []
"default": [],
"examples": ["enable-list-users"],
"items": {
"type": "string",
"enum": ["enable-list-users"]
}
},
"maxTuplesPerWrite": {
"type": [
Expand Down Expand Up @@ -648,6 +653,14 @@
"description": "the maximum allowed number of concurrent reads in a single ListObjects query",
"default": 4294967295
},
"maxConcurrentReadsForListUsers": {
"type": [
"integer",
"null"
],
"description": "the maximum allowed number of concurrent reads in a single ListUsers query",
"default": 4294967295
},
"changelogHorizonOffset": {
"type": [
"integer",
Expand Down Expand Up @@ -690,6 +703,26 @@
],
"description": "the maximum results to return in ListObjects responses"
},
"listUsersDeadline": {
"type": [
"string",
"null"
],
"description": "the timeout deadline (as a duration) for serving ListUsers requests",
"format": "duration",
"examples": [
"3s",
"1m",
"200ms"
]
},
"listUsersMaxResults": {
"type": [
"integer",
"null"
],
"description": "the maximum results to return in ListUsers responses"
},
"requestDurationDatastoreQueryCountBuckets": {
"description": "datastore query count buckets used to label the histogram metric for measuring request duration.",
"type": "array",
Expand Down
3 changes: 3 additions & 0 deletions charts/openfga/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -262,11 +262,14 @@ maxTypesPerAuthorizationModel:
maxAuthorizationModelSizeInBytes:
maxConcurrentReadsForCheck:
maxConcurrentReadsForListObjects:
maxConcurrentReadsForListUsers:
changelogHorizonOffset:
resolveNodeLimit:
resolveNodeBreadthLimit:
listObjectsDeadline:
listObjectsMaxResults:
listUsersDeadline:
listUsersMaxResults:
requestDurationDatastoreQueryCountBuckets: [50, 200]
allowWriting1_0Models:
allowEvaluating1_0Models:
Expand Down

0 comments on commit bac6624

Please sign in to comment.