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

Ko builder: Add Env, Flags, and Ldflags config #6546

Merged
merged 1 commit into from
Sep 8, 2021

Conversation

halvards
Copy link
Collaborator

Description

Adds the following config fields to the ko artifact builder schema:

  • Env, for environment variables to set during image build, e.g. GOPRIVATE.
  • Flags, for arguments to go build, e.g., -trimpath.
  • Ldflags, for linker flags such as -s, and -w.

Bumps the ko version to bring in support for these build config fields.

Tracking: #6041
Related: #6496

Adds the following config fields to the ko artifact builder schema:

- `Env`, for environment variables to set during image build, e.g.
  `GOPRIVATE`.
- `Flags`, for arguments to `go build`, e.g., `-trimpath`.
- `Ldflags`, for linker flags such as `-s`, and `-w`.

Bumps the ko version to bring in support for these build config fields.
@halvards halvards requested a review from a team as a code owner August 31, 2021 01:31
@google-cla google-cla bot added the cla: yes label Aug 31, 2021
@codecov
Copy link

codecov bot commented Aug 31, 2021

Codecov Report

Merging #6546 (7c6600c) into main (60332e3) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #6546      +/-   ##
==========================================
+ Coverage   70.42%   70.44%   +0.01%     
==========================================
  Files         515      515              
  Lines       23144    23155      +11     
==========================================
+ Hits        16300    16312      +12     
+ Misses       5786     5784       -2     
- Partials     1058     1059       +1     
Impacted Files Coverage Δ
pkg/skaffold/build/ko/builder.go 100.00% <100.00%> (ø)
pkg/skaffold/build/docker/errors.go 63.33% <0.00%> (-2.23%) ⬇️
pkg/skaffold/log/stream/stream.go 85.71% <0.00%> (+14.28%) ⬆️

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 60332e3...7c6600c. Read the comment docs.

@halvards halvards added the kokoro:run runs the kokoro jobs on a PR label Aug 31, 2021
@kokoro-team kokoro-team removed the kokoro:run runs the kokoro jobs on a PR label Aug 31, 2021
@MarlonGamez MarlonGamez merged commit d879183 into GoogleContainerTools:main Sep 8, 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.

None yet

4 participants