Skip to content

Commit

Permalink
fix helm charts
Browse files Browse the repository at this point in the history
  • Loading branch information
usu committed May 4, 2024
1 parent 1980743 commit 140c0ba
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .helm/ecamp3/templates/api_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ spec:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
enableServiceLinks: false
containers:
- name: name: {{ .Chart.Name }}-api
- name: {{ .Chart.Name }}-api
{{/* Define the api container as a template, so it can be reused in other places */}}
{{- define "api.container" }}
securityContext:
Expand Down Expand Up @@ -151,7 +151,7 @@ spec:
exec:
command: ["/bin/sh", "-c", "/bin/sleep 1; kill -QUIT 1"]
{{- end }}
{{- template "api.phpContainer" . }}
{{- template "api.container" . }}
resources:
{{- toYaml .Values.api.resources | nindent 12 }}
readinessProbe:
Expand Down
2 changes: 1 addition & 1 deletion .helm/ecamp3/templates/hook_db_migrate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ spec:
restartPolicy: Never
containers:
- name: db-migrate-job
{{ template "api.phpContainer" . }}
{{ template "api.container" . }}
command: ["migrate-database"]
volumes:
- name: php-socket
Expand Down
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"port": 9003,
"log": true,
"pathMappings": {
"/srv/api": "${workspaceRoot}/api"
"/app": "${workspaceRoot}/api"
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion api/.vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"port": 9003,
"log": true,
"pathMappings": {
"/srv/api": "${workspaceRoot}"
"/app": "${workspaceRoot}"
}
},
{
Expand Down

0 comments on commit 140c0ba

Please sign in to comment.