Skip to content

Commit e14c8b5

Browse files
Merge pull request #309038 from RichardChen820/appconfig/k8sProvider/tagfilter
[Appconfig] Add tag filter in k8s provider reference doc
2 parents 6dfa500 + 7bef044 commit e14c8b5

2 files changed

Lines changed: 22 additions & 2 deletions

File tree

articles/azure-app-configuration/configuration-provider-overview.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ This is an overview of each feature and its current status for different framewo
4747
- **N/A (Not Available)**: It is not planned to offer the feature for the specified framework or language.
4848

4949
Feature | .NET | Spring | Kubernetes | Python | JavaScript | Go |
50-
------- | ---- | ------ | ---------- | ------ | ----------
50+
------- | ---- | ------ | ---------- | ------ | ---------- | -- |
5151
Connection String Authentication | [GA](./reference-dotnet-provider.md#load-configuration) | GA | GA | GA | [GA](./reference-javascript-provider.md#load-configuration) | GA
5252
Entra ID Authentication | [GA](./reference-dotnet-provider.md#load-configuration) | GA | GA | GA | [GA](./reference-javascript-provider.md#load-configuration) | GA
5353
Dynamic Refresh (Poll Mode) | [GA](./reference-dotnet-provider.md#refresh-on-sentinel-key) | GA | GA | GA | [GA](./reference-javascript-provider.md#refresh-on-sentinel-key) | GA
@@ -71,7 +71,7 @@ Replica Load Balancing | [GA](./reference-dotnet-provider.md#geo-replication) |
7171
Snapshots | [GA](./reference-dotnet-provider.md#snapshot) | GA | GA | WIP | [GA](./reference-javascript-provider.md#snapshot) | GA
7272
Distributed Tracing | [GA](./reference-dotnet-provider.md#distributed-tracing) | WIP | WIP | WIP | WIP | N/A
7373
Health Check | [GA](./reference-dotnet-provider.md#health-check) | GA | WIP | WIP | WIP | N/A
74-
Select by Tag Filters | [GA](./reference-dotnet-provider.md#load-specific-key-values-using-selectors) | WIP | WIP | GA | [GA](./reference-javascript-provider.md#tag-filters) | GA
74+
Select by Tag Filters | [GA](./reference-dotnet-provider.md#load-specific-key-values-using-selectors) | WIP | GA | GA | [GA](./reference-javascript-provider.md#tag-filters) | GA
7575
Snapshot Reference | [GA](./reference-dotnet-provider.md#snapshot-reference) | WIP | WIP | WIP | WIP | WIP
7676

7777
## Support policy

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

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ If the `spec.configuration.selectors` property isn't set, all key-values with no
7474
|---|---|---|---|
7575
|keyFilter|The key filter for querying key-values. This property and the `snapshotName` property should not be set at the same time.|alternative|string|
7676
|labelFilter|The label filter for querying key-values. This property and the `snapshotName` property should not be set at the same time.|false|string|
77+
|tagFilters|The tag filters for querying key-values. This property and the `snapshotName` property should not be set at the same time. Tag filter must be formatted as `tag1=value1`.|false|string array|
7778
|snapshotName|The name of a snapshot from which key-values are loaded. This property should not be used in conjunction with other properties.|alternative|string|
7879

7980
The `spec.configuration.refresh` property has the following child properties.
@@ -152,6 +153,7 @@ If the `spec.featureFlag.selectors` property isn't set, feature flags are not do
152153
|---|---|---|---|
153154
|keyFilter|The key filter for querying feature flags. This property and the `snapshotName` property should not be set at the same time.|alternative|string|
154155
|labelFilter|The label filter for querying feature flags. This property and the `snapshotName` property should not be set at the same time.|false|string|
156+
|tagFilters|The tag filters for querying feature flags. This property and the `snapshotName` property should not be set at the same time. Tag filter must be formatted as `tag1=value1`.|false|string array|
155157
|snapshotName|The name of a snapshot from which feature flags are loaded. This property should not be used in conjunction with other properties.|alternative|string|
156158

157159
The `spec.featureFlag.refresh` property has the following child properties.
@@ -356,6 +358,24 @@ spec:
356358
labelFilter: development
357359
```
358360

361+
Tag filters can also be used to filter key-values. In the following sample, only key-values with the tag `env=prod` are downloaded.
362+
363+
``` yaml
364+
apiVersion: azconfig.io/v1
365+
kind: AzureAppConfigurationProvider
366+
metadata:
367+
name: appconfigurationprovider-sample
368+
spec:
369+
endpoint: <your-app-configuration-store-endpoint>
370+
target:
371+
configMapName: configmap-created-by-appconfig-provider
372+
configuration:
373+
selectors:
374+
- keyFilter: '*'
375+
tagFilters:
376+
- env=prod
377+
```
378+
359379
A snapshot can be used alone or together with other key-value selectors. In the following sample, you load key-values of common configuration from a snapshot and then override some of them with key-values for development.
360380

361381
``` yaml

0 commit comments

Comments
 (0)