|
| 1 | +# Copyright The Linux Foundation and each contributor to LFX. |
| 2 | +# SPDX-License-Identifier: MIT |
| 3 | +--- |
| 4 | + |
| 5 | +# image is the configuration for the container image |
| 6 | +image: |
| 7 | + # repository is the container image repository |
| 8 | + repository: ghcr.io/linuxfoundation/lfx-v2-fga-sync/lfx-v2-fga-sync |
| 9 | + # tag is the container image tag (defaults to appVersion if not specified) |
| 10 | + tag: "" |
| 11 | + # pullPolicy is the image pull policy |
| 12 | + pullPolicy: "IfNotPresent" |
| 13 | + |
| 14 | +# nats is the configuration for the NATS server |
| 15 | +nats: |
| 16 | + # url is the URL of the NATS server |
| 17 | + url: nats://lfx-platform-nats.lfx.svc.cluster.local:4222 |
| 18 | + |
| 19 | + # cacheFgaKvBucket is the configuration for the KV bucket for storing FGA cache |
| 20 | + cacheFgaKvBucket: |
| 21 | + # creation is a boolean to determine if the KV bucket should be created via the helm chart. |
| 22 | + # set it to false if you want to use an existing KV bucket. |
| 23 | + creation: true |
| 24 | + # keep is a boolean to determine if the KV bucket should be preserved during helm uninstall |
| 25 | + # set it to false if you want the bucket to be deleted when the chart is uninstalled |
| 26 | + keep: true |
| 27 | + # name is the name of the KV bucket for storing FGA cache |
| 28 | + name: fga-sync-cache |
| 29 | + # history is the number of history entries to keep for the KV bucket |
| 30 | + history: 20 |
| 31 | + # storage is the storage type for the KV bucket |
| 32 | + storage: file |
| 33 | + # maxValueSize is the maximum size of a value in the KV bucket |
| 34 | + maxValueSize: 10485760 # 10MB |
| 35 | + # maxBytes is the maximum number of bytes in the KV bucket |
| 36 | + maxBytes: 1073741824 # 1GB |
| 37 | + # compression is a boolean to determine if the KV bucket should be compressed |
| 38 | + compression: true |
| 39 | + |
| 40 | +# fga is the configuration for the OpenFGA server |
| 41 | +# These values come from the lfx-platform helm chart repo: |
| 42 | +# https://github.com/linuxfoundation/lfx-v2-helm/blob/main/docs/openfga.md |
| 43 | +fga: |
| 44 | + # apiUrl is the URL of the OpenFGA API server |
| 45 | + apiUrl: http://lfx-platform-openfga.lfx.svc.cluster.local:8080 |
| 46 | + # storeId is the ID of the OpenFGA store |
| 47 | + storeId: 01K1GTJZW163H839J3YZHD8ZRY |
| 48 | + # modelId is the ID of the OpenFGA model |
| 49 | + modelId: 01K1H4TFHDSBCZVZ5EP6HHDWE6 |
| 50 | + |
| 51 | +# application is the configuration for the application |
| 52 | +application: |
| 53 | + # debug is a boolean to determine if the application should run in debug mode |
| 54 | + debug: false |
| 55 | + # useCache is a boolean to determine if the application should use the cache |
| 56 | + # Only turn it off if you are developing locally and are writing to the OpenFGA store |
| 57 | + # outside of this service (e.g. granting certain access to a test user manually) |
| 58 | + useCache: true |
| 59 | + # replicas is the number of pod replicas |
| 60 | + replicas: 1 |
| 61 | + # resources is the resource configuration for the pods |
| 62 | + resources: |
| 63 | + requests: |
| 64 | + memory: "64Mi" |
| 65 | + cpu: "100m" |
| 66 | + limits: |
| 67 | + memory: "128Mi" |
| 68 | + cpu: "500m" |
0 commit comments