Skip to content

How to set Environment variables for Envoy-Filter? #32

Closed

Description

@dmsqls

Hi.

I want to use environment variables in EnvoyFilter, is there a way to set it?

I checked the environment variable with the code below but couldn't find anything.


extern char **environ;
bool testRootContext::onStart(size_t ul_config_size)
{
for (int for_i = 0; environ[for_i] != NULL; for_i++) {
LOG_ERROR(std::string("ENV==== "), std::string(environ[for_i]));
}
return true;
}


Let me know if there is a way to get the environment variable.

thanks.

Activity

  1. taegyunkim commented on Jul 1, 2020

    @taegyunkim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions