[FIX] builds /log endpoint (#73)
This commit is contained in:
parent
fd229e0fc6
commit
2b3af238ba
2 changed files with 5 additions and 0 deletions
|
|
@ -282,6 +282,9 @@ def log(build_name: str, job_kind: DeploymentMode | None) -> str | None:
|
|||
corev1.read_namespaced_pod_log(
|
||||
pod.metadata.name,
|
||||
namespace=settings.build_namespace,
|
||||
container=pod.metadata.annotations.get(
|
||||
"kubectl.kubernetes.io/default-container"
|
||||
),
|
||||
tail_lines=None if job_kind else None,
|
||||
follow=False,
|
||||
),
|
||||
|
|
|
|||
|
|
@ -15,6 +15,8 @@ spec:
|
|||
metadata:
|
||||
labels:
|
||||
app: odoo
|
||||
annotations:
|
||||
kubectl.kubernetes.io/default-container: odoo
|
||||
spec:
|
||||
# let Odoo stop gracefully to disconnect from postgres
|
||||
terminationGracePeriodSeconds: 10
|
||||
|
|
|
|||
Loading…
Reference in a new issue