GoogleContainerTools/skaffold

Expose option to suppress output from hooks runner

Aberta

#6.344 aberto em 2 de ago. de 2021

 (1 comentário) (0 reação) (0 responsável)Go (1.416 forks)batch import
area/hookshelp wantedkind/feature-requestpriority/p3

Métricas do repositório

Stars
 (12.822 estrelas)
Métricas de merge de PR
 (Mesclagem média 3d 6h) (16 fundiu PRs em 30d)

Description

From https://github.com/GoogleContainerTools/skaffold/pull/6337#discussion_r681211816:

we definitely can't use the deploy mute setting since the application logs are manually muted in-between dev loops using this setting. This will have the effect of never actually printing the container hook log messages, since the container hooks are always executed in-between dev loops.

As is, output from executing hooks scripts will always be surfaced to users, even when the logs for individual phases are suppressed. We should either:

  • tie the output of the hooks to the associated phase (e.g. pre-/post-deploy hooks tied to the deploy phase; or,
  • add an option to explicitly suppress output from hooks themselves, independent of their associated phase

Option 1 seems a bit cleaner, but Option 2 seems useful for users who have hooks with particularly verbose output.

Guia do colaborador