briefercloud / briefercloud/briefer
Container "api" complaining about Missing AI_API_URL environment variable
- Dominant language
- TypeScript
- Stars
- 4.3k
- Forks
- 290
- PR merge metrics
- No merged PRs in 30d
Description
I'm using Helm Chart to deploy in a Kubernetes cluster and I've setup the `Values.ai.enabled` to be "false", consequently the portion of code below does not get created:
```
{{- if .Values.ai.enabled }}
# AI related environment variables
- name: AI_API_URL
value: '{{ .Values.api.env.aiApiUrl }}'
- name: AI_API_USERNAME
valueFrom:
secretKeyRef:
name: ai-secrets
key: aiApiUsername
- name: AI_API_PASSWORD
valueFrom:
secretKeyRef:
name: ai-secrets
key: aiApiPassword
- name: PYTHON_ALLOWED_LIBRARIES
value: '{{ .Values.api.env.pythonAllowedLibraries | default "pandas, plotly, matplotlib" }}'
{{- end }}
```
However, the container "api" is getting to CrashLoopBackOff" because the variable is missing, but well... I don't want to use the AI.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the Helm chart template containing the .Values.ai.enabled condition, then inspect the api container's startup validation for AI_API_URL. Confirm the expected behavior when AI is disabled and verify that the api container starts without the AI environment variables.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- helm, kubernetes
- Domain
- devops, infrastructure
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100