Skip to content

Commit 34548ec

Browse files
committed
Add links to READMEs of npm packages
1 parent 90377e1 commit 34548ec

File tree

8 files changed

+15
-99
lines changed

8 files changed

+15
-99
lines changed

ts/apps/cli/polaris-cli/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
This is the CLI for the Polaris SLO Cloud project.
44

5+
For more information, please have a look at the [Polaris CLI documentation](https://polaris-slo-cloud.github.io/polaris/features/cli.html).
6+
57
## Debugging the CLI:
68

79
To debug the Polaris CLI, follow these steps:

ts/libs/core/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
# @polaris-sloc/core
22

33
This is the orchestrator-independent core library of the Polaris framework.
4+
5+
For more information, please visit the Polaris framework's [website](https://polaris-slo-cloud.github.io).

ts/libs/mappings/common-mappings/README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,5 @@
22

33
This library was contains commonly used Polaris mappings and interfaces.
44

5-
6-
## Running unit tests
7-
8-
Run `ng test mappings-common-mappings` to execute the unit tests via [Jest](https://jestjs.io).
9-
5+
For more information, please visit the Polaris framework's [website](https://polaris-slo-cloud.github.io).
106

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
11
# metrics-cost-efficiency
22

3-
This library was generated with [Nx](https://nx.dev).
4-
5-
## Running unit tests
6-
7-
Run `nx test metrics-cost-efficiency` to execute the unit tests via [Jest](https://jestjs.io).
3+
This library contains [Polaris](https://polaris-slo-cloud.github.io) composed metric for cost efficiency.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
# @polaris-sloc/kubernetes
22

33
This library provides Kubernetes-specific implementations of the interfaces provided by @polaris-sloc/core.
4+
5+
For more information, please visit the Polaris framework's [website](https://polaris-slo-cloud.github.io).
6+

ts/libs/polaris-nx/README.md

Lines changed: 2 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -1,85 +1,9 @@
11
# Polaris Plugin for Nx CLI
22

33
This library is a plugin for the [Nx](https://nx.dev) CLI.
4+
It is wrapped by the *Polaris CLI*.
45

5-
6-
## Features
7-
8-
This plugin supplies builders and generators for the following types:
9-
* `slo-mapping-type`: creates a new SLO mapping type that can be used by consumers to apply and configure an SLO.
10-
* `slo-controller`: creates an SLO controller for an SLO mapping type.
11-
* `slo-mapping`: creates a new mapping instance for an existing SLO mapping type.
12-
13-
14-
## Getting Started
15-
16-
To get started, you need to [create an empty Nx workspace](https://nx.dev/latest/node/getting-started/nx-setup).
17-
To do this, open a terminal and navigate to the location, where you want to create the workspace.
18-
Then, do the following (always replace `my-workspace` with your workspace's name):
19-
20-
1. While not strictly required, it is recommended to install Nx CLI globally, because it will allow you to run commands more easily.
21-
```shell
22-
npm install -g nx
23-
```
24-
25-
1. Create an empty workspace.
26-
```shell
27-
npx create-nx-workspace --preset=empty my-workspace
28-
```
29-
30-
1. Add the Polaris plugin to your workspace.
31-
```shell
32-
cd my-workspace
33-
npm install --save-dev @polaris-sloc/polaris-nx
34-
```
35-
36-
37-
38-
## `slo-mapping-type`
39-
40-
An `slo-mapping-type` needs to be part of a publishable npm package (i.e., a publishable library project).
41-
42-
If you already have a library project, e.g., `my-slo-lib`, create the SLO Mapping type as follows:
43-
44-
```shell
45-
nx g @polaris-sloc/polaris-nx:slo-mapping-type cost-efficiency --project=my-slo-lib
46-
```
47-
48-
If you don't have a publishable library project yet, you can create one using the `@nrwl/node:library` generator, or let the `slo-mapping-type` generator create one for you:
49-
50-
```shell
51-
nx g @polaris-sloc/polaris-nx:slo-mapping-type cost-efficiency --project=my-slo-lib --createLibProject=true --importPath=@my-org/my-slo-lib
52-
```
53-
54-
Both versions will generate the `CostEfficiencySlo` class in the file `cost-efficiency.slo.ts` and export it from the library.
55-
56-
57-
58-
## `slo-controller`
59-
60-
An SLO controller is an application that is run as a controller in the orchestrator that watches SLO mapping instances to evaluate an SLO and trigger the configured elasticity strategy.
61-
62-
1. Create an `slo-controller` application project.
63-
```shell
64-
nx g @polaris-sloc/polaris-nx:slo-controller cost-efficiency-slo-controller --sloMappingTypePkg=@my-org/my-slo-lib --sloMappingType=CostEfficiencySlo
65-
```
66-
67-
68-
69-
## `slo-mapping`
70-
71-
An `slo-mapping` needs to be part of an existing library project, which does not need to be buildable, because there is a custom builder for SLO mappings.
72-
73-
1. Create a node library project, if you don't have one.
74-
```shell
75-
nx g @nrwl/node:library my-slo-mappings
76-
```
77-
78-
1. Create the SLO Mapping.
79-
```shell
80-
nx g @polaris-sloc/polaris-nx:slo-mapping my-slo-mapping --project=my-slo-mappings --sloMappingTypePkg=@my-org/my-slo-lib --sloMappingType=CostEfficiencySlo
81-
```
82-
6+
For more information, please have a look at the [Polaris CLI documentation](https://polaris-slo-cloud.github.io/polaris/features/cli.html).
837

848

859
## Running E2E Tests and Manual Testing
Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
# query-backends-prometheus
1+
# @polaris-sloc/prometheus
22

3-
This library was generated with [Nx](https://nx.dev).
4-
5-
## Running unit tests
6-
7-
Run `ng test query-backends--prometheus` to execute the unit tests via [Jest](https://jestjs.io).
3+
This library contains the [Polaris framework's](https://polaris-slo-cloud.github.io) query backend for Prometheus.

ts/libs/schema-gen/README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
This library supports the generation of various schemas from TypeScript code.
44

5+
For more information, please visit the Polaris framework's [website](https://polaris-slo-cloud.github.io).
6+
57

68
## JSON Schema Generation
79

@@ -13,8 +15,3 @@ This library relies on the [ts-json-schema-generator](https://www.npmjs.com/pack
1315

1416
To generate an OpenAPI v3 schema, we first generate a JSON schema and then transform it to an OpenAPI v3 schema using the [@openapi-contrib/json-schema-to-openapi-schema](https://www.npmjs.com/package/@openapi-contrib/json-schema-to-openapi-schema) package.
1517
If an OpenAPI v3.1 schema is needed, the JSON Schema can be used directly.
16-
17-
18-
## Running unit tests
19-
20-
Run `nx test schema-gen` to execute the unit tests via [Jest](https://jestjs.io).

0 commit comments

Comments
 (0)