pepr 0.8.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -12
- package/dist/cli.js +85 -70
- package/dist/controller.js +1 -1
- package/dist/lib/controller.d.ts +2 -0
- package/dist/lib/controller.d.ts.map +1 -1
- package/dist/lib/k8s/webhook.d.ts.map +1 -1
- package/dist/lib/metrics.d.ts +38 -0
- package/dist/lib/metrics.d.ts.map +1 -0
- package/dist/lib/processor.d.ts.map +1 -1
- package/dist/lib/request.d.ts.map +1 -1
- package/dist/lib.js +92 -3
- package/dist/lib.js.map +4 -4
- package/package.json +6 -5
- package/src/lib/controller.ts +19 -0
- package/src/lib/k8s/webhook.ts +1 -0
- package/src/lib/metrics.ts +79 -0
- package/src/lib/processor.ts +5 -0
- package/src/lib/request.ts +16 -5
package/README.md
CHANGED
|
@@ -44,29 +44,22 @@ When(a.ConfigMap)
|
|
|
44
44
|
|
|
45
45
|
- [Node.js](https://nodejs.org/en/) v18.0.0+.
|
|
46
46
|
|
|
47
|
-
> _Recommend installing with [NVM](https://github.com/nvm-sh/nvm) or [NVM for Windows](https://github.com/coreybutler/nvm-windows) to avoid permission issues when installing the Pepr CLI globally._
|
|
48
|
-
|
|
49
47
|
- Recommended (optional) tools:
|
|
50
48
|
- [Visual Studio Code](https://code.visualstudio.com/) for inline debugging and [Pepr Capabilities](#capability) creation.
|
|
51
|
-
- A Kubernetes cluster for `pepr dev`. Pepr modules include `npm run k3d-setup` if you want to test locally with [K3d](https://k3d.io/) and [Docker](https://www.docker.com/).
|
|
49
|
+
- A Kubernetes cluster for `npx pepr dev`. Pepr modules include `npm run k3d-setup` if you want to test locally with [K3d](https://k3d.io/) and [Docker](https://www.docker.com/).
|
|
52
50
|
|
|
53
51
|
## Wow too many words! tl;dr;
|
|
54
52
|
|
|
55
53
|
```bash
|
|
56
|
-
#
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
# Initialize a new Pepr Module
|
|
60
|
-
pepr init
|
|
61
|
-
|
|
62
|
-
# Follow the prompts...
|
|
54
|
+
# Initialize a new Pepr Module, you can also use `npx pepr@latest init` to make sure you have the latest version
|
|
55
|
+
npx pepr init
|
|
63
56
|
|
|
64
57
|
# If you already have a Kind or K3d cluster you want to use, skip this step
|
|
65
58
|
npm run k3d-setup
|
|
66
59
|
|
|
67
60
|
# Start playing with Pepr now
|
|
68
|
-
# If using another local K8s distro instead of k3d, run `pepr dev --host host.docker.internal`
|
|
69
|
-
pepr dev
|
|
61
|
+
# If using another local K8s distro instead of k3d, run `npx pepr dev --host host.docker.internal`
|
|
62
|
+
npx pepr dev
|
|
70
63
|
kubectl apply -f capabilities/hello-pepr.samples.yaml
|
|
71
64
|
|
|
72
65
|
# Be amazed and ⭐️ this repo
|