pepr 0.2.8 → 0.2.10

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 CHANGED
@@ -6,9 +6,16 @@ Pepr is on a mission to save Kubernetes from the tyranny of YAML, intimidating g
6
6
 
7
7
  ## Features
8
8
 
9
- - Define a set of Kubernetes transformations/actions as Pepr capabilities.
10
- - Write capabilities in TypeScript and bundle them for in-cluster processing in [NodeJS](https://nodejs.org/).
11
- - React to cluster resources by mutating them, creating new Kubernetes resources, or performing arbitrary exec/API operations.
9
+ - Zero-config K8s webhook mutations and [validations soon](https://github.com/defenseunicorns/pepr/issues/73).
10
+ - Human-readable fluent API for generating [Pepr Capabilities](#capability)
11
+ - Generate new K8s resources based off of cluster resource changes
12
+ - Perform other exec/API calls based off of cluster resources changes or any other abitrary schedule
13
+ - Out of the box airgap support with [Zarf](https://zarf.dev)
14
+ - Entire NPM ecosystem available for advanced operations
15
+ - Realtime K8s debugging system for testing/reacting to cluster changes
16
+ - Controller network isolation and tamper-resistent module execution
17
+ - Automatic least-privilege RBAC generation [soon](https://github.com/defenseunicorns/pepr/issues/31)
18
+ - AMD64 and ARM64 support
12
19
 
13
20
  ## Example Pepr CapabilityAction
14
21
 
@@ -48,6 +55,7 @@ pepr init
48
55
  npm run k3d-setup
49
56
 
50
57
  # Start playing with Pepr now
58
+ # If using another local K8s distro instead of k3d, run `pepr dev --host host.docker.internal`
51
59
  pepr dev
52
60
  kubectl apply -f capabilities/hello-pepr.samples.yaml
53
61
 
package/dist/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "engines": {
10
10
  "node": ">=18.0.0"
11
11
  },
12
- "version": "0.2.8",
12
+ "version": "0.2.10",
13
13
  "main": "dist/index.js",
14
14
  "types": "dist/index.d.ts",
15
15
  "pepr": {
@@ -40,7 +40,7 @@
40
40
  "@rollup/plugin-json": "6.0.0",
41
41
  "@rollup/plugin-node-resolve": "15.0.2",
42
42
  "@rollup/plugin-typescript": "11.1.0",
43
- "@types/ramda": "0.29.0",
43
+ "@types/ramda": "0.29.1",
44
44
  "chokidar": "3.5.3",
45
45
  "commander": "10.0.1",
46
46
  "express": "4.18.2",
@@ -51,7 +51,7 @@
51
51
  "prettier": "2.8.8",
52
52
  "prompts": "2.4.2",
53
53
  "ramda": "0.29.0",
54
- "rollup": "3.21.0",
54
+ "rollup": "3.21.4",
55
55
  "ts-node": "10.9.1",
56
56
  "tslib": "2.5.0",
57
57
  "typescript": "5.0.4",
@@ -63,11 +63,11 @@
63
63
  "@types/node-forge": "1.3.2",
64
64
  "@types/prompts": "2.4.4",
65
65
  "@types/uuid": "9.0.1",
66
- "@typescript-eslint/eslint-plugin": "5.59.0",
67
- "@typescript-eslint/parser": "5.59.0",
66
+ "@typescript-eslint/eslint-plugin": "5.59.2",
67
+ "@typescript-eslint/parser": "5.59.2",
68
68
  "ava": "5.2.0",
69
69
  "eslint": "8.39.0",
70
- "nock": "13.3.0"
70
+ "nock": "13.3.1"
71
71
  },
72
72
  "ava": {
73
73
  "extensions": [
@@ -17,7 +17,7 @@ function default_1(program) {
17
17
  program
18
18
  .command("dev")
19
19
  .description("Setup a local webhook development environment")
20
- .option("-h, --host [host]", "Host to listen on", "host.docker.internal")
20
+ .option("-h, --host [host]", "Host to listen on", "host.k3d.internal")
21
21
  .option("--confirm", "Skip confirmation prompt")
22
22
  .action(async (opts) => {
23
23
  // Prompt the user to confirm if they didn't pass the --confirm flag
package/docs/cli.md CHANGED
@@ -10,6 +10,7 @@ Initialize a new Pepr Module.
10
10
  - `--skip-post-init` - Skip npm install, git init and VSCode launch
11
11
 
12
12
  ---
13
+
13
14
  ## `pepr update`
14
15
 
15
16
  Update the current Pepr Module to the latest SDK version and update the global Pepr CLI to the same version.
@@ -23,12 +24,15 @@ Update the current Pepr Module to the latest SDK version and update the global P
23
24
 
24
25
  ## `pepr dev`
25
26
 
26
- Connect a local cluster to a local version of the Pepr Controller to do real-time debugging of your module.
27
+ Connect a local cluster to a local version of the Pepr Controller to do real-time debugging of your module. Note
28
+ the `pepr dev` assumes a K3d cluster is running by default. If you are working with Kind or another docker-based
29
+ K8s distro, you will need to pass the `--host host.docker.internal` option to `pepr dev`. If working with a remote
30
+ cluster you will have to give Pepr a host path to your machine that is reachable from the K8s cluster.
27
31
 
28
32
  **Options:**
29
33
 
30
34
  - `-l, --log-level [level]` - Log level: debug, info, warn, error (default: "info")
31
- - `-h, --host [host]` - Host to listen on (default: "host.docker.internal")
35
+ - `-h, --host [host]` - Host to listen on (default: "host.k3d.internal")
32
36
  - `--confirm` - Skip confirmation prompt
33
37
 
34
38
  ---
package/docs/module.md CHANGED
@@ -23,6 +23,7 @@ Each Pepr Module is it's own Typescript project, produced by [`pepr init`](./cli
23
23
  npm run k3d-setup
24
24
 
25
25
  # Launch pepr dev mode (npm start or pepr dev)
26
+ # If using another local K8s distro instead of k3d, use `pepr dev --host host.docker.internal`
26
27
  pepr dev
27
28
 
28
29
  # From another terminal, apply the sample yaml
@@ -0,0 +1,4 @@
1
+ # One entry for each vulnerability group
2
+ [[IgnoredVulns]]
3
+ id = "GHSA-p8p7-x288-28g6"
4
+ reason = "Library only used client-side and not affected by this vulnerability."
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "engines": {
10
10
  "node": ">=18.0.0"
11
11
  },
12
- "version": "0.2.8",
12
+ "version": "0.2.10",
13
13
  "main": "dist/index.js",
14
14
  "types": "dist/index.d.ts",
15
15
  "pepr": {
@@ -40,7 +40,7 @@
40
40
  "@rollup/plugin-json": "6.0.0",
41
41
  "@rollup/plugin-node-resolve": "15.0.2",
42
42
  "@rollup/plugin-typescript": "11.1.0",
43
- "@types/ramda": "0.29.0",
43
+ "@types/ramda": "0.29.1",
44
44
  "chokidar": "3.5.3",
45
45
  "commander": "10.0.1",
46
46
  "express": "4.18.2",
@@ -51,7 +51,7 @@
51
51
  "prettier": "2.8.8",
52
52
  "prompts": "2.4.2",
53
53
  "ramda": "0.29.0",
54
- "rollup": "3.21.0",
54
+ "rollup": "3.21.4",
55
55
  "ts-node": "10.9.1",
56
56
  "tslib": "2.5.0",
57
57
  "typescript": "5.0.4",
@@ -63,11 +63,11 @@
63
63
  "@types/node-forge": "1.3.2",
64
64
  "@types/prompts": "2.4.4",
65
65
  "@types/uuid": "9.0.1",
66
- "@typescript-eslint/eslint-plugin": "5.59.0",
67
- "@typescript-eslint/parser": "5.59.0",
66
+ "@typescript-eslint/eslint-plugin": "5.59.2",
67
+ "@typescript-eslint/parser": "5.59.2",
68
68
  "ava": "5.2.0",
69
69
  "eslint": "8.39.0",
70
- "nock": "13.3.0"
70
+ "nock": "13.3.1"
71
71
  },
72
72
  "ava": {
73
73
  "extensions": [