Commit Graph

10 Commits

Author SHA1 Message Date
Jan Van Bruggen c51efce2a0 Update docs to always use yarn add --cwd for app & backend
Some commands currently error, and others are simply formatted inconsistently.
This format seems to work and be the most popular/common,
so I applied it to all similar occurrences.

Signed-off-by: Jan Van Bruggen <JanVB@verily.com>
2023-02-13 09:40:20 -07:00
Fredrik Adelöw cbe11d1e23 just getting rid of vale warnings
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2022-10-22 17:18:47 +02:00
Patrick Jungermann 134b69f478 feat(catalog/gerrit): Add option to configure schedule via app-config.yaml
Relates-to: PR #13859
Signed-off-by: Patrick Jungermann <Patrick.Jungermann@gmail.com>
2022-10-07 12:32:50 +02:00
Patrick Jungermann b594679ae3 feat: support array as arg for CatalogBuilder.addEntityProvider and others
Allows to use e.g.

```
builder.addEntityProvider(getArrayOfProviders());
```

instead of

```
builder.addEntityProvider(...getArrayOfProviders());
```

Signed-off-by: Patrick Jungermann <Patrick.Jungermann@gmail.com>
2022-05-16 19:01:26 +02:00
Johan Haals f60c94b5cc Update task schedule examples
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2022-05-03 13:39:54 +02:00
Patrik Oldsberg 89bb53685c vale: prune accepted vocabulary
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-04-27 18:44:55 +02:00
Niklas Aronsson 6673babab9 GerritUrlReader: Implemented "readTree"
"readTree" has been implemented for the "GerritUrlReader". Gerrit have
a REST API's to download repo contents but there are a number of
limitations that makes it unusable.

This implementation works as follows:
* The project and branch is parsed from the url.
* The current revision is fetched from the Gerrit REST API.
* The revision string is used as "etag".
* If the etag has changed a temporary directory is created.
* The project is cloned to the temporary directory.
* The cloned content is read into a "Readable Stream".
* The temporary directory is removed.
* "readTree" returns a response using "fromTarArchive" as read from the
  temporary directory.

Also added an option to specify the base "cloneUrl" has been added to the
gerrit integration config.

Signed-off-by: Niklas Aronsson <niklasar@axis.com>
2022-04-22 14:52:02 +02:00
Niklas Aronsson 566407bf8a New plugin: "plugin-catalog-backend-module-gerrit"
The "plugin-catalog-backend-module-gerrit" exports an entity
provider for discovering catalog entities from Gerrit
repositories. The provider uses the "List Projects" API in Gerrit
to get a list of repositories and will automatically ingest all
"catalog-info.yaml" files stored in the root of the matching
projects.

Also added the "getGerritProjectsApiUrl" function to the Gerrit
integration. This returns the url to the "List Projects" API for
a given integration.

Signed-off-by: Niklas Aronsson <niklasar@axis.com>
2022-04-21 07:33:40 +02:00
Niklas Aronsson 3f8aae6ffa Added url schemas to Gerrit location doc examples
Also added the Gerrit location docs to the microsite.

Signed-off-by: Niklas Aronsson <niklasar@axis.com>
2022-04-08 15:07:22 +02:00
Niklas Aronsson 89b0af9b4b Gerrit: Added location docs
Documentation have been added that describes how to configure Gerrit
integrations.

Signed-off-by: Niklas Aronsson <niklasar@axis.com>
2022-04-07 14:09:27 +02:00