tinkerbell / hegel

Instance Metadata Service
https://tinkerbell.org
Apache License 2.0
97 stars 32 forks source link

Introduce flags to toggle APIs #99

Closed chrisdoherty4 closed 2 years ago

chrisdoherty4 commented 2 years ago

Currently, Hegel exposes both gRPC and HTTP APIs. The gRPC API exposes Get and Subscribe APIs. The HTTP API is predominantly composed of EC2 IMDSv1 plus an API for retrieving the current subscriptions (its unclear if this is used by consumers).

Consumers don't necessarily want both gRPC and HTTP endpoints exposed and likely only want to consume a particular standard like EC2 IMD or Equinix Metal metadata. This issue is to introduce flags for defining what technology should be exposed on launch.

The initial introduction of flags should enable all existing technologies by default with a view to swapping to opt-in in a future release.

chrisdoherty4 commented 2 years ago

@detiber

chrisdoherty4 commented 2 years ago

We're introducing a Hegel metadata API and dropping support for Equinix specific APIs. We'll close this issue and await the Hegel API switch.