-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
- move
id/1to an callback - Refactor
conn/0token/0log_http_error/1into GKE adapter adapter to pave way for pluggable support.connshould be optional to all functions currently accepting it, if not provided, the adapter should call itsconn/0function. -
gothshould be an optional dependency and should not automatically be started unless a GCP token is present. -
PoolPolicyspec should be extended to acceptspec.providerwith the only current valid valuegcp -
NodePoolshould have aproviderfield. - Add API for registering an adapter at runtime and looking them up by name
- Ballast.Adapters.Local for development/test
- Move adapter specific HTTP errors into adapter, ie:
Tesla.Envin node_pool.ex
defmodule Adapter do
def register(name, mod), do: "..."
def lookup(name), do: mod
end
Adapter.register("gcp", Ballast.Adapters.GKE)
Adapter.lookup("gcp") #=> Ballast.Adapters.GKEMetadata
Metadata
Assignees
Labels
No labels