Skip to content

Conversation

@milas
Copy link
Contributor

@milas milas commented May 12, 2023

  • Optimize the Dockerfile to use cache mounts
  • Use the context.Context during HTTP operations
  • Add an internal context for normal controller operations
  • Sequence shutdown to wait for informer to stop and then attempt to unexpose any ports before exiting
    • Unexpose ports in parallel, we just log out all the errors regardless


"github.com/moby/vpnkit/go/pkg/controller"
"github.com/moby/vpnkit/go/pkg/vpnkit"
log "github.com/sirupsen/logrus"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

logrus was being used in the controller but not here - switched for consistency and to add ability to config log level via flag

* Optimize the `Dockerfile` to use cache mounts
* Use the `context.Context` during HTTP operations
* Add an internal context for normal controller operations
* Sequence shutdown to wait for informer to stop and then
  attempt to unexpose any ports before exiting
  * Unexpose ports in parallel, we just log out all the
    errors regardless

Signed-off-by: Milas Bowman <[email protected]>
@milas milas force-pushed the k8s-forwarder-lifecycle branch from a7e2158 to e786d72 Compare May 12, 2023 19:33
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.

1 participant