Skip to content

Flag to provide Go build arguments #1435

@baijum

Description

@baijum

Feature Request

Is your feature request related to a problem? Please describe.

I want to include Git commit hash in the operator binary. It can be injected as a build-time value as described in this blog: https://blog.alexellis.io/inject-build-time-vars-golang/
This requires a way to specify Go build arguments in the operator-sdk build command.

Describe the solution you'd like

The flag could be similar to what is used in up local sub-command: operator-sdk up local --go-ldflags.


Earlier I have added this feature request as a comment here: #1404 (comment)

Metadata

Metadata

Assignees

Labels

kind/featureCategorizes issue or PR as related to a new feature.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions