redboxllc / scuttle

A wrapper for applications to help with running Istio Sidecars
MIT License
116 stars 25 forks source link

Default for ENVOY_ADMIN_API #12

Open greatvovan opened 4 years ago

greatvovan commented 4 years ago

I suggest defaulting ENVOY_ADMIN_API to http://localhost:15000 to satisfy the most common case.

linjmeyer commented 4 years ago

I think it's a good suggestion. Right now this env variable being set is what enables Scuttle, that is necessary to ensure things like docker run work for local development outside of a Kubernetes/Istio cluster. Setting this to the default is okay, we just need to add a new environment variable like ENVOY_ADMIN_POLLING=TRUE/FALSE or similar.

greatvovan commented 4 years ago

I see your point, indeed, it is a case, too. But I would prefer to override the default value of ENVOY_ADMIN_API with "" for local runs rather than add it for production. Alternatively we can have SCUTTLE_ENABLED variable defaulting to true.