Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Debug logging for generating tags (#12088)
* Use config to provide a default tag for images build for pr or commit. Added validation tag field to provide validation regex together with a tag. Update kaniko-build-config.yaml to provide default tag for pr and commit images with validation regex. Validating tag when parsing it's value. Added TagOption to add PR number to the Tagger instance. Using pull request default tag together with user provided tags instead replacing all values with default tag. This allows users to provide their own tag to the images build on pr. * Pass logger instance. * First set of debug lof messages * More loggers. Write parsed tags to file. * More debug log statements. Added writing generated tags to the file. This let us write logs in to stdout because the generated tags can be read from file. * Pass logger instance. * First set of debug lof messages * More loggers. Write parsed tags to file. * More debug log statements. Added writing generated tags to the file. This let us write logs in to stdout because the generated tags can be read from file. * Adjusteed tests * More debug logs * Do not change kaniko build config. THis is done in separate pr. Use logger from options when building locally. * Added named method to better describe log message context Added logging in other packages used by image-builder * Fixed tests * write output file to the root of container * Fix expected flag * Do not use named logger interface * More context data
- Loading branch information