Skip to content

Commit

Permalink
Merge pull request #12 from TheLunarCompany/core-1294-add-the-ability…
Browse files Browse the repository at this point in the history
…-to-configure-the-value-of-redis_prefix-env

Added the option to configure REDIS_PREFIX
  • Loading branch information
eitangol authored Oct 23, 2024
2 parents 953c399 + 37c19e3 commit 4b4bf96
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 15 deletions.
4 changes: 4 additions & 0 deletions charts/lunar-proxy/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ spec:
- name: LUNAR_MANAGED
value: {{ .Values.lunarManaged }}
{{- end }}
{{- if .Values.redisPrefix }}
- name: REDIS_PREFIX
value: {{ .Values.redisPrefix }}
{{- end }}
{{- if .Values.redisUrl }}
- name: REDIS_URL
value: {{ .Values.redisUrl }}
Expand Down
47 changes: 37 additions & 10 deletions charts/lunar-proxy/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
"type": "string"
}
},
"required": ["repository"],
"required": [
"repository"
],
"additionalProperties": false
},
"imagePullSecrets": {
Expand All @@ -42,7 +44,9 @@
"type": "string"
}
},
"required": ["create"],
"required": [
"create"
],
"additionalProperties": true
},
"livenessProbe": {
Expand Down Expand Up @@ -86,7 +90,10 @@
"type": "object"
},
"env": {
"type": ["string", "null"]
"type": [
"string",
"null"
]
},
"telemetryEnabled": {
"type": "boolean"
Expand All @@ -95,20 +102,32 @@
"type": "string"
},
"tenantName": {
"type": ["string", "null"]
"type": [
"string",
"null"
]
},
"awsAccessKeyId": {
"type": ["string", "null"]
"type": [
"string",
"null"
]
},
"awsSecretAccessKey": {
"type": ["string", "null"]
"type": [
"string",
"null"
]
},
"lunarManaged": {
"type": "boolean"
},
"lunarFlushSeconds": {
"type": "integer"
},
"redisPrefix": {
"type": "string"
},
"service": {
"type": "object",
"properties": {
Expand All @@ -128,7 +147,10 @@
"type": "object"
}
},
"required": ["type", "port"],
"required": [
"type",
"port"
],
"additionalProperties": false
},
"resources": {
Expand Down Expand Up @@ -179,7 +201,10 @@
"type": "string"
}
},
"required": ["path", "pathType"]
"required": [
"path",
"pathType"
]
}
}
}
Expand Down Expand Up @@ -255,7 +280,9 @@
}
}
},
"required": ["enabled"]
"required": [
"enabled"
]
},
"configMapNames": {
"type": "object",
Expand All @@ -277,4 +304,4 @@
}
},
"additionalProperties": true
}
}
14 changes: 9 additions & 5 deletions charts/lunar-proxy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,19 @@ env: null
logLevel: "error"
tenantName: null
lunarStreamsEnabled: false
redisUrl: null

lunarHubURL: null
redisUseCluster: false

awsAccessKeyId: null
telemetryEnabled: true
awsSecretAccessKey: null
lunarManaged: false

# Redis configuration
redisUrl: null
redisUseCluster: false
redisPrefix: "lunar"

lunarFlushSeconds: 10

livenessProbe:
Expand Down Expand Up @@ -191,7 +196,6 @@ policies:
file:
file_dir: "/var/log/lunar-proxy"
file_name: "output.log"

# ==== Example of flows and quotas: ====
# flows:
# rate_limit_flow.yaml: |
Expand Down Expand Up @@ -244,7 +248,7 @@ policies:
# name: Limiter
# condition: above_limit
# to:
# processor:
# processor:
# name: GenerateResponseTooManyRequests

# response:
Expand All @@ -261,7 +265,7 @@ policies:
# name: globalStream
# at: start
# to:
# processor:
# processor:
# name: GenerateResponse

# - from:
Expand Down

0 comments on commit 4b4bf96

Please sign in to comment.