Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve documentation of docker buildArgs (#5871) #5901

Merged
merged 2 commits into from
May 26, 2021

Conversation

torenware
Copy link
Contributor

  • Fixes documentation issue where yaml syntax was not described and templating not mentioned.
  • Adds a unit test to verify that docker buildArgs support golang templating from the environment.

Fixes: #5871
Description

This PR replaces PR-5884, which took a meandering path to get to the results you see here.

PR includes:

  • A doc change for docker buildArgs showing YAML syntax for their use, and reminding users that the feature supports templating from the environment.
  • A unit test to verify that this actually works.

User facing changes (remove if N/A)
Only a change in documentation.

Change to pkg/skaffold/docker/build_args_test.go to exercise the templating code.

- Fixes documentation issue where yaml syntax was not described and templating not mentioned.
- Adds a unit test to verify that docker buildArgs support golang templating from the environment.
@codecov
Copy link

codecov bot commented May 25, 2021

Codecov Report

❗ No coverage uploaded for pull request base (master@e030a85). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #5901   +/-   ##
=========================================
  Coverage          ?   70.89%           
=========================================
  Files             ?      448           
  Lines             ?    16933           
  Branches          ?        0           
=========================================
  Hits              ?    12005           
  Misses            ?     4034           
  Partials          ?      894           
Impacted Files Coverage Δ
pkg/skaffold/schema/latest/v1/config.go 58.82% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e030a85...23fcbbf. Read the comment docs.

    - Fixes documentation issue where yaml syntax was not described and templating not mentioned.
    - Adds a unit test to verify that docker buildArgs support golang templating from the environment.

(revised: removed a blank line in an otherwise unchanged file).
@tejal29 tejal29 added the docs-modifications runs the docs preview service on the given PR label May 25, 2021
@container-tools-bot
Copy link

Please visit http://34.102.21.2:1313 to view changes to the docs.

@container-tools-bot container-tools-bot removed the docs-modifications runs the docs preview service on the given PR label May 25, 2021
@tejal29 tejal29 added the kokoro:run runs the kokoro jobs on a PR label May 25, 2021
@tejal29 tejal29 enabled auto-merge (squash) May 25, 2021 03:31
@tejal29 tejal29 disabled auto-merge May 25, 2021 03:31
@kokoro-team kokoro-team removed the kokoro:run runs the kokoro jobs on a PR label May 25, 2021
@tejal29 tejal29 merged commit 44cf6b5 into GoogleContainerTools:master May 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Kaniko buildArgs are evaluated with environment but Docker buildArgs are not
4 participants