Skip to content

Commit

Permalink
chore: debugging-856
Browse files Browse the repository at this point in the history
Signed-off-by: Case Wylie <[email protected]>
  • Loading branch information
cmwylie19 committed Jul 10, 2024
1 parent 664175f commit 04c08a8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docs/060_best-practices/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,12 @@ If you have a validating webhook, it is recommended to set the failurePolicy to
timeoutSeconds: 3
```

The failurePolicy and timeout can be set in the `package.json` under `pepr`, and the settings will be reflected in the `*WebhookConfiguration` after the next build:
The failurePolicy (onError - "ignore" or "enforce") and timeout can be set in the `package.json` under `pepr`, and the settings will be reflected in the `*WebhookConfiguration` after the next build:

```json
"pepr": {
"uuid": "static-test",
"onError": "ignore", # ignore or reject
"onError": "ignore",
"webhookTimeout": 10,
```

Expand All @@ -136,6 +136,9 @@ If you need to read all store keys, or you think the PeprStore is malfunctioning
kubectl get peprstore -n pepr-system -o yaml
```



You should run in `npx pepr dev` mode to debug the issue.
## Deployment

Production environment deployments should be `declarative` in order to avoid mistakes. The Pepr modules should be generated with `npx pepr build` and moved into the appropriate location.
Expand Down

0 comments on commit 04c08a8

Please sign in to comment.