You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-app-configuration/reference-kubernetes-provider.md
+84-20Lines changed: 84 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ If the `spec.target.configMapData` property is not set, the generated ConfigMap
37
37
38
38
|Name|Description|Required|Type|
39
39
|---|---|---|---|
40
-
|type|The type that indicates how the retrieved data is constructed in the generated ConfigMap. The allowed values include `default`, `json`, `yaml` and `properties`|optional|string|
40
+
|type|The setting that indicates how the retrieved data is constructed in the generated ConfigMap. The allowed values include `default`, `json`, `yaml` and `properties`|optional|string|
41
41
|key|The key name of the retrieved data when the `type` is set to `json`, `yaml` or `properties`. Set it to the file name if the ConfigMap is set up to be consumed as a mounted file|conditional|string|
42
42
43
43
If the `spec.auth` property isn't set, the system-assigned managed identity is used. It has the following child properties. Only one authentication method should be set.
@@ -297,7 +297,19 @@ spec:
297
297
298
298
Applications running in Kubernetes typically consume the ConfigMap either as environment variables or as configuration files. If the `configMapData.type` property is absent or is set to environment variables, the ConfigMap is populated with the itemized list of data retrieved from Azure App Configuration, which can be easily consumed as environment variables. If the `configMapData.type` property is set to json, yaml or properties, data retrieved from Azure App Configuration is grouped into one item with key name specified by the `configMapData.key` property in the generated ConfigMap, which can be consumed as a mounted file.
299
299
300
-
For example, you can create an `AzureAppConfigurationProvider` with following settings to populate the ConfigMap with grouped values in json type.
300
+
Following examples show you how the data is populated in the generated ConfigMap with different setting of `configMapData.type` property.
301
+
302
+
Assume these key-values are selected from Azure App Configuration:
303
+
304
+
|key|value|
305
+
|---|---|
306
+
|key1|value1|
307
+
|key2|value2|
308
+
|key3|value3|
309
+
310
+
#### [default](#tab/default)
311
+
312
+
Use the following sample `AzureAppConfigurationProvider` with `configMapData.type` property absent or set to `default`.
0 commit comments