-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xds bootstrap: support config content in env variable #4153
Conversation
return []byte(fContent), nil | ||
} | ||
|
||
return nil, fmt.Errorf("none of the bootstrap environment variables (%q or %q) defined", "GRPC_XDS_BOOTSTRAP", "GRPC_XDS_BOOTSTRAP_CONFIG") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we export consts for those strings and reference them here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We do have consts for them, but they are in another package.
Exported those and used them here.
GRPC_XDS_BOOTSTRAP
exists then use its value as the name of the bootstrap file. If the file is missing or the contents of the file are malformed, return an error.GRPC_XDS_BOOTSTRAP_CONFIG
exists then use its value as the bootstrap config. If the value is malformed, return an error.fixes #4127