Skip to content

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

Merged
mogren merged 1 commit intoaws:masterfrom
jaypipes:cmd-and-pkg-cleanup
Jan 29, 2020
Merged

place binaries in cmd/ and packages in pkg/#815
mogren merged 1 commit intoaws:masterfrom
jaypipes:cmd-and-pkg-cleanup

Conversation

@jaypipes
Copy link
Copy Markdown
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
Copy Markdown
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