-
Notifications
You must be signed in to change notification settings - Fork 73
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
Support separator in the provider #834
Comments
@antoineozenne-at-leocare, thanks for reporting this. @linglingye001 @RichardChen820 can you please take a look? |
Thank you for bringing this issue to our attention. I followed the same steps but was unable to reproduce the issue on my end. The key values in APPCS looks like this when I use
And the data in configmap generated by kubernetes provider :
Can you please provide more details about the issue you're facing? It will help us better understand the problem and work towards a resolution. Thanks! |
@linglingye001 @RichardChen820 @zhenlan , I'm sorry, I made a mistake in the description of my issue. I have edited it. I get the same data as you in my configmap (with the colon as separator, and not a slash). The problem is not the separator itself, it is the format of the json key (with the colon in the key): If I export the data with the App Configuration via the Azure Portal, I get |
Do you have a special reason for having to use a hierarchical structure configuration in configMap? We do support re-construct the configurations into hierarchical structure in exporting scenario since people may take the exported file for other usage, we make a symmetric experience for import/export. But in Kubernetes scenario, it do nothing with export, since the applications do have the ability to understand the flattened configuration, so seems a little bit overkill to re-construct them. |
I don't know if this is part of the json spec, but my applications don't understand the flattened configuration. I don't know if we can admit that all applications have the ability to understand the flattened configuration. 🤔 |
What language/platform is your application built based on? |
It is JS and Python. But I can't easily request a code update for that (we don't have the control over all the code). |
That sounds reasonable to me. Adding a
|
Yes, that sounds perfect to me! Thanks! |
@RichardChen820 Are you also able to add this feature to yaml configmap types as well? I.e.: In AppConfig:
would become this in the configmap:
Our use case is that we want to merge helm chart overrides using the appconfig provider and it's not really viable for us to flatten all the values. Thanks! |
@landintrees thanks for letting us know your requirement. Yeah, we will support for both yaml and json. It will be supported in the coming v1.1.0, please stay tuned. |
@antoineozenne-at-leocare @landintrees
|
It would be great if we could define the separator to use in the
AzureAppConfigurationProvider
resource. Currently, the json mounted in the configmap is not the same as the one imported with the az-cli. Here is my use case.I want to import the following json file in APPCS to mount it in a pod:
For that, I use this command:
az appconfig kv import --label mylabel --separator : --name myappcs --source file --path myfile.json --format json --prefix myprefix/
Then when I use this
AzureAppConfigurationProvider
:The data in the configmap looks like:
I would set the separator to use in the
AzureAppConfigurationProvider
resource, but it seems not possible.The text was updated successfully, but these errors were encountered: