apigee / registry

The Registry API allows teams to track and manage machine-readable descriptions of APIs.
https://apigee.github.io/registry
Apache License 2.0
148 stars 33 forks source link

Registry tool: support wildcards in parent fields of YAML resources #1220

Open timburks opened 1 year ago

timburks commented 1 year ago

A user suggested that it would be helpful to be able to use wildcards in Registry YAML files to cause artifacts to be applied to multiple parents.

As an example, the following YAML would be applied to all APIs with ids beginning with foo- and ending with -bar:

apiVersion: apigeeregistry/v1
kind: FieldSet
metadata:
  parent: apis/foo-*-bar
  name: support
data:
  definitionName: projects/PROJECTID/locations/global/artifacts/support
  values:
    email: "apiteam@acme.com"
    team: "Team"