-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change format.Writer to not format phase output log lines (#1431)
When kube.ExecOutput() writes the remote stdout/stderr outputs to the user-provided writers, it calls format.Writer() to format the outputs to the Kanister-log format. This causes the "phase output" to be prepended with log metadata such as log timestamp, caller function etc. A previous attempt to expand the output.Parse() function regex to handle these log metadata prefixes has caused some downstream failures. This fix reverts to the previous implementation of output.Parse(). It also updates the format.Writer() to not format any "phase output". Signed-off-by: Ivan Sim <ivan.sim@kasten.io> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
- Loading branch information
1 parent
3f1f8a3
commit a1d4240
Showing
3 changed files
with
9 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters