docs: Automated CherryPick Update for release-v4.4 #4232
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🤖 Generated by Copilot at 268682b
Summary
🆕♻️🎨
This pull request adds a feature to render templates with environment variables in the
buildah create
command, and refactors theenv
,strings
, andfilesystem
packages to use a common function for this task. It also introduces a new constant for the template suffix in theconstants
package. These changes improve the usability, consistency, and maintainability of the code.Walkthrough
buildah
,env
, andstrings
packages (link, link, link, link, link, link, link, link, link, link, link, link, link)env
to thecreateOptions
type and a new flag--env
to thebuildah create
command to allow specifying environment variables for template files (link, link)runRender
to thebuildah
package that concurrently renders templates with environment variables in each mount point using thestrings
package (link)runRender
function from thecreate
function if theenv
field is not empty (link, link)TemplateSuffix
to theconstants
package to avoid hard-coding the template suffix value (link)RenderAll
function in theenv
package to use thestrings
package instead of thetemplate
package for rendering templates with environment variables (link, link, link)renderTemplatesWithEnv
function in thefilesystem
package to use theRenderAll
function from theenv
package instead of looping over the directories and calling thefilepath.Walk
function (link)RenderTemplatesWithEnv
to thestrings
package that renders templates with environment variables in the subdirectories of a file path using thetemplate
package (link, link)create
function for readability (link)buildah
,env
, andstrings
packages to reflect the dependencies needed for the new and refactored functionality (link, link, link)Automated changes by create-pull-request GitHub action