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

place binaries in cmd/ and packages in pkg/ #815

Merged
merged 1 commit into from
Jan 29, 2020

Conversation

jaypipes
Copy link
Contributor

Use Golang idiomatic best practices for placement of binaries (into cmd/
directory) and packages (in pkg/ directory).

  • Move client/health-check/grpc_health_probe.go to
    cmd/grpc-health-probe/main.go
  • Move ipamd/* into pkg/ipamd
  • Move cni-metrics-helper/cni-metrics-helper.go to
    cmd/cni-metrics-helper/main.go and driver/ package under
    cmd/cni-metrics-helper/driver
  • Move plugins/routed-eni to cmd/routed-eni-cni-plugin
  • Move main.go to cmd/aws-k8s-agent/main.go
  • Update v1.5 config's aws-vpc-cni.yaml and scripts/entrypoint.sh to
    reflect new grpc-health-probe binary name
  • Update Dockerfiles with new binary names

Closes Issue #746

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Use Golang idiomatic best practices for placement of binaries (into cmd/
directory) and packages (in pkg/ directory).

* Move client/health-check/grpc_health_probe.go to
  cmd/grpc-health-probe/main.go
* Move ipamd/* into pkg/ipamd
* Move cni-metrics-helper/cni-metrics-helper.go to
  cmd/cni-metrics-helper/main.go and driver/ package under
  cmd/cni-metrics-helper/driver
* Move plugins/routed-eni to cmd/routed-eni-cni-plugin
* Move main.go to cmd/aws-k8s-agent/main.go
* Update v1.5 config's aws-vpc-cni.yaml and scripts/entrypoint.sh to
  reflect new grpc-health-probe binary name
* Update Dockerfiles with new binary names

Closes Issue aws#746
Copy link
Contributor

@mogren mogren left a comment

Choose a reason for hiding this comment

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

Nice, thanks @jaypipes!

@mogren mogren merged commit 8340e95 into aws:master Jan 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants