Skip to content

Commit

Permalink
fix: update deployment env var in valuies
Browse files Browse the repository at this point in the history
  • Loading branch information
claywd committed Oct 17, 2023
1 parent 37b729f commit 511c579
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
4 changes: 0 additions & 4 deletions charts/kubefirst-api/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@ spec:
containers:
- name: {{ .Chart.Name }}
env:
{{- range $name, $item := .Values.env }}
- name: {{ $name }}
{{- $item | toYaml | nindent 14 }}
{{- end }}
{{- if not .Values.atlasDbHost }}
- name: MONGODB_HOST
value: {{ .Values.mongodbHost | default (printf "%s-mongodb.%s.svc.cluster.local" (.Release.Name ) (.Release.Namespace )) }}
Expand Down
8 changes: 5 additions & 3 deletions charts/kubefirst-api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,12 @@ tolerations: []

affinity: {}

env:
ENTERPRISE_API_URL:
env: [
{
name: "ENTERPRISE_API_URL",
value: "http://kubefirst-kubefirst-api-ee.kubefirst.svc.cluster.local"

},
]
envFrom: []

existingSecret: ''
Expand Down

0 comments on commit 511c579

Please sign in to comment.