You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Start watching logs of k8s Job defined as Deploy action:
> garden logs -f database-migration -l 4
....
Service logs (from the last '1m' for each service):
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
ℹ [monitors] → Starting log monitor for Deploy type=helm name=database-migration...
[debug] <No running containers found for ServiceAccount database-migration. Will retry in 10s...>
[debug] <No running containers found for ServiceAccount database-migration. Will retry in 10s...>
[debug] <No running containers found for ServiceAccount database-migration. Will retry in 10s...>
[debug] <No running containers found for ServiceAccount database-migration. Will retry in 10s...>
[debug] <No running containers found for ServiceAccount database-migration. Will retry in 10s...>
No logs are shown for the job and every 10s it complains with: [debug] <No running containers found for ServiceAccount database-migration. Will retry in 10s...>
Expected behavior
Logs of the job are shown with garden logs command.
Error validating spec for Run type=helm-pod name=hello-world:
spec.resource.kind must be one of [Deployment, DaemonSet, StatefulSet]
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
[debug] Done flushing all events and log entries.
Failed to resolve Run type=helm-pod name=hello-world: Error: resolve Run type=helm-pod name=hello-world failed: Error: Error validating spec for Run type=helm-pod name=hello-world:
spec.resource.kind must be one of [Deployment, DaemonSet, StatefulSet]
Bug
Start watching logs of k8s Job defined as Deploy action:
Re-deploy job:
What is happening in the meantime:
Current Behavior
No logs are shown for the job and every 10s it complains with:
[debug] <No running containers found for ServiceAccount database-migration. Will retry in 10s...>
Expected behavior
Logs of the job are shown with
garden logs
command.Reproducible example
Deploy action for a helm chart with Job only.
Workaround
Use
kubectl logs -f $JOB_POD
Suggested solution(s)
To support Jobs by
garden logs
because according to docs https://docs.garden.io/using-garden/using-the-cli#logs it shows logs of anyDeploy
Additional context
Your environment
Fedora release 39 (Thirty Nine)
EKS
The text was updated successfully, but these errors were encountered: