-
Notifications
You must be signed in to change notification settings - Fork 75
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
bake version info into binary for logging #25
Comments
/sig k8s-infra Possible to use https://tip.golang.org/doc/go1.18#debug/buildinfo ? |
it might be if we upgrade to 1.18! /help |
@BenTheElder: GuidelinesPlease ensure that the issue body includes answers to the following questions:
For more details on the requirements of such an issue, please see here and ensure that they are met. If this request no longer meets these requirements, the label can be removed In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
TLDR: no.
As long as we can figure out how to get ko to pass these as well, we can just set xdef with the metadata ourselves in the build target(s), kind has an example that is close to what we want. |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/remove-lifecycle stale |
TODO: remove lifecycle bot from this repo. |
I think this is deep on the backlog, it sounds nice to have, but we also have other ways to see what cloudrun is up to and we're only using tagged images in production. Ordinarily for
See also https://kubernetes.slack.com/archives/CCK68P2Q2/p1656629484801139?thread_ts=1656626472.238269&cid=CCK68P2Q2 in Kubernetes slack. |
/retitle bake version info into binary for logging |
we're not changing the version often and we know what image is deployed in cloud run config (and we're using digests so it's an exact image), so this remains low priority. |
Cloud run gives us detailed info about revisions to services, I don't think this will actually help and it has the downside of making the build reproducibility dependent on git info. We can already trace back deploys to specific images and the associated commit |
we have version info in the tags we push, but we should probably also bake it into the binary for logging. we can use a golang x-def and update the build commands.
ideally this should be fully sortable git info, see kubernetes-sigs/kind#2618, and also a starting non-fully-sortable version of embedding this info in a similar makefile in that repo as a starting point.
The text was updated successfully, but these errors were encountered: