#Unused Configuration Value prevents startup
1 messages · Page 1 of 1 (latest)
This is by design. You can assign a default value to configurable variable to prevent failure at startup.
What about environmental variables?
If we create an environmental variable BAL_CONFIG_VAR_TEST but don’t use it for now, the application shows an error during startup
Hmm. We do have defaults to our 3 vars. The bal build works fine, we know the variables are injected into helm chart at deployment time, but then when the service tried to start in k8s, we get
error: [BAL_CONFIG_VAR_varName] unused environment variable variable.
Looping in @signal fable
This is a feature by design, as the failure helps to identify the invalid configurations such as typos. When starting the program we ensure all the provided configurations are read by the program despite the default values.
https://github.com/ballerina-platform/ballerina-spec/issues/980