GoogleContainerTools/skaffold

Bug/feature req: Show errors from Lifecycle hook when it fails

開放

#7,019 建立於 2022年1月17日

 (3 則留言) (0 個反應) (0 位負責人)Go (1,416 個分叉)batch import
area/status-checkhelp wantedkind/enhancementpriority/p3

倉庫指標

星標
 (12,822 顆星)
PR 合併指標
 (平均合併 3天 6小時) (30 天內合併 16 個 PR)

描述

Expected behavior

If a lifecycle hook fails, and the pod fails to start up, its "invisible" to the skaffold user, I expected it to log events from the lifecycle hooks.

Actual behavior

Waiting, and then terminating without any obvious reason to why

Information

  • Skaffold version: 1.29.0
  • Operating system: Fedora 32
  • Installed via: gcloud components / package manager

Steps to reproduce the behavior

Event logs fetch via Lens:

Exec lifecycle hook ([php bin/console cache:warmup -n]) for Container "eportal" in Pod "eportal-6cc67c6456-sgb9z_morten(b3217653-88da-4970-955d-8012e1aed6d6)" failed - error: command 'php bin/console cache:warmup -n' exited with 1: In DefinitionErrorExceptionPass.php line 54: Cannot autowire service "App\Controller\ApiOperations\Group\GetAvailableGro upMeetings": argument "$request" of method "__construct()" references class "Symfony\Component\HttpFoundation\Request" but no such service exists. , message: "\nIn DefinitionErrorExceptionPass.php line 54:\n \n Cannot autowire service \"App\\Controller\\ApiOperations\\Group\\GetAvailableGro \n upMeetings\": argument \"$request\" of method \"__construct()\" references class \n \"Symfony\\Component\\HttpFoundation\\Request\" but no such service exists. \n \n\n"

貢獻者指南