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

Added flag for version information output #44

Merged
merged 2 commits into from
May 20, 2019

Conversation

djcass44
Copy link
Contributor

@djcass44 djcass44 commented May 17, 2019

Is this a bug fix or adding new feature?

Fixes: #25

What is this PR about? / Why do we need it?

This PR adds the ability to run the built binary with --version which prints some information about the application:

  • commit sha when built
  • driver version
  • go version used to build
  • date of build
  • os of build platform
  • architecture of build platform

What testing is done?
make verify
make test
docker build -t aws-efs-csi-test . && docker run aws-efs-csi-test --version (to ensure no pollution from my workspace)

Assumptions

Since the Makefile contained GOOS=linux I didn't add any portability for getting this information on non-Linux platforms.

Please let me know if you wish for me to change the names of any of the json fields or the way that the date is formatted.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label May 17, 2019
@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label May 17, 2019
@djcass44 djcass44 mentioned this pull request May 17, 2019
Copy link
Contributor

@leakingtapan leakingtapan left a comment

Choose a reason for hiding this comment

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

Thx for the PR. could you refer to this PR in EBS CSI driver: kubernetes-sigs/aws-ebs-csi-driver@182211d for the sake of consistency ?

pkg/info/info.go Outdated Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
pkg/info/info.go Outdated Show resolved Hide resolved
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels May 17, 2019
@djcass44
Copy link
Contributor Author

I've added a test and made the implementation more closely match that of the sister-ebs implementation for consistency

@leakingtapan
Copy link
Contributor

thx for making the change.

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 20, 2019
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: djcass44, leakingtapan

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 added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 20, 2019
@k8s-ci-robot k8s-ci-robot merged commit a47f1b6 into kubernetes-sigs:master May 20, 2019
jsafrane pushed a commit to jsafrane/aws-efs-csi-driver that referenced this pull request Aug 10, 2023
…ERS-and-OWNERS_ALIASES

OCPBUGS-16783: Chore: Update OWNERS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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 "Looks good to me", 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.

Add version command
3 participants