Skip to content

Commit 73ae163

Browse files
Merge pull request #278105 from linglingye001/user/linglingye/fixFeatureFlagExample
Fix feature flag example
2 parents dc2af33 + 9c57313 commit 73ae163

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

articles/azure-app-configuration/reference-kubernetes-provider.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ spec:
457457

458458
### Feature Flags
459459

460-
In the following sample, feature flags with keys starting with `app1` and labels equivalent to `common` are downloaded and refreshed every 10 minutes.
460+
In the following sample, feature flags with keys starting with `app1` and labels equivalent to `common` are downloaded and refreshed every 10 minutes. Note that to populate feature flags in the generated ConfigMap, the `configMapData.type` property must be `json` or `yaml`.
461461

462462
``` yaml
463463
apiVersion: azconfig.io/v1
@@ -468,6 +468,9 @@ spec:
468468
endpoint: <your-app-configuration-store-endpoint>
469469
target:
470470
configMapName: configmap-created-by-appconfig-provider
471+
configMapData:
472+
type: json
473+
key: appSettings.json
471474
featureFlag:
472475
selectors:
473476
- keyFilter: app1*

0 commit comments

Comments
 (0)