konveyor / tackle2-addon-analyzer

Apache License 2.0
0 stars 11 forks source link

:sparkles: support multiple providers in the addon workflow #83

Closed jortel closed 3 months ago

jortel commented 4 months ago

Support multiple providers.

Requires: https://github.com/konveyor/tackle2-hub/issues/599

Resource Injector

Aggregate the initConfig fragments from each Extension.metadata.

Inject information into the initConfig.

Considering: To support this, a set of injectors will be provided to get, store hub REST resource (fields). Fetched resources are assigned to variables that may be used in the metadata. Resource:

Example:

metadata:
  resources:
  - kind: identity:kind=maven
    fields:
    - name: settings
      path: /shared/creds/maven/settings.xml
       key: settings.path
  - kind: identity=other
    fields:
    - name: user
       key: auth.user
    - name: password
       key: auth.password
  provider:
    initConfig:
     mavenSettingsPath: $(settings.path)
     user: $(auth.user)
     password: $(auth.password)
jortel commented 3 months ago

Closed by #79