Skip to content
This repository has been archived by the owner on Sep 24, 2021. It is now read-only.

Implement version info into binaries #89

Merged

Conversation

ashish-amarnath
Copy link
Contributor

What this PR does / why we need it:
Improves debug-ability of capd by printing version info of various capd binaries

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

Special notes for your reviewer:

Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.

Release note:


@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jul 17, 2019
Copy link
Contributor

@chuckha chuckha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks solid, one comment that i'm fine punting on since copy pasta is not that bad. Out of curiosity did you copy/pasta the Version file and if so from where? I am pretty sure I've seen this code before somewhere

@ashish-amarnath
Copy link
Contributor Author

ashish-amarnath commented Jul 17, 2019 via email

@chuckha
Copy link
Contributor

chuckha commented Jul 17, 2019

/approve

/assign @liztio
for lgtm

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 17, 2019
cmd/capdctl/main.go Outdated Show resolved Hide resolved
@chuckha
Copy link
Contributor

chuckha commented Jul 17, 2019

just a few more comments

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jul 17, 2019
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jul 17, 2019
cmd/kind-test/main.go Outdated Show resolved Hide resolved
hack/set-workspace-status.sh Show resolved Hide resolved
@chuckha
Copy link
Contributor

chuckha commented Jul 18, 2019

after those changes and squashing commits, i think this looks good

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jul 18, 2019
add script to set workspace status
implement version subcommand for capdctl
add script to build binaries
implement versioninfo as a package
build capd-manager with version info
build kind-test with version info
update readme

Signed-off-by: Ashish Amarnath <ashish.amarnath@gmail.com>
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jul 18, 2019
@ashish-amarnath ashish-amarnath changed the title Implement versioninfo for capd binaries Implement version info into binaries Jul 18, 2019
Copy link
Contributor

@chuckha chuckha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve
/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 18, 2019
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ashish-amarnath, chuckha

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit fb1105e into kubernetes-retired:master Jul 18, 2019
@ashish-amarnath ashish-amarnath deleted the capdctl-version branch July 18, 2019 18:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants