-
Notifications
You must be signed in to change notification settings - Fork 42
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
Rename default extension.json to extension.config #124
Comments
@mathetake I can try to explain motivation behind the current solution (and naming). Envoy configuration model allows developers of Wasm extensions to choose any format for their own configuration. That's why
See https://github.com/tetratelabs/getenvoy/blob/master/pkg/extension/workspace/model/example.go#L85 We could add The reason why we always generate In the case of
Regarding the name So, my approach to naming was "if a file with Envoy bootstrap configuration is called I'm open for changes. |
Thanks Yaro for explaining the motivation behind the current convention! That makes sense.
One thing I would like to note is that I believe not being able to use json as a format is totally a good reason for TinyGo (and AssemblyScript as well?) since they even don't support the ready-to-use library as you know. Also, I know some people use base64-encoded protobuf in the configuration with C++ SDK. Using protobuf as the format is also good for the control plane side since they can use the library as it is, not hand-crafting json schema. As a future plan, we would have more languages in getenvoy (@lizan right?), so I think that makes sense to rename to non-json bundled one.
Now I understand the motivation why you call just So I would suggest using |
I'm OK with renaming the file (in the generation phase) to something like that only for TinyGo. But I have some concerns that would make the getenvoy's code needlessly complicated. WDYT? |
If you want to rename this file for My personal preference would be Let's update the source code of the init template(s) to support comment lines in the config file. And then include a comment line into You will also need to update examples' |
While writing TinyGo tutorial, I realized that we should not limit extension configuration to be json, also the name
extension.json
sounds ambiguous to me because it does not have aconfiguration
-ish word in its name.So I would like to rename it to be
extension.config
or something similar which does not indicate the format and have config-ish meaning in its name. Ideas? @yskopets @nullpo-headAs a workaround for the format, we can add
data/example/init/templates/envoy..../${format}/*
which containsextension.${format}
for every template, but I think that's too much just for resolving this.The text was updated successfully, but these errors were encountered: