Skip to content

Commit

Permalink
docs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
docs.yml committed Feb 28, 2024
1 parent eccd9af commit fb11108
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions site/content/en/main/user-guide/customization.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
---
title: Customization
weight: 120
---


This document outlines how to customize the build output through Helm overrides and `package.json` configurations.

## Customizing with Helm

Below are the available Helm override configurations after you have built your Pepr module that you can put in the `values.yaml`.

### Helm Overrides Table

| Parameter | Description | Example Values |
|---------------------------------|-------------------------------------------|------------------------------------------------|
| `secrets.apiToken` | Kube API-Server Token. | `Buffer.from(apiToken).toString("base64")` |
| `hash` | Unique hash for deployment. Do not change.| `<your_hash>` |
| `namespace.annotations` | Namespace annotations | `{}` |
| `namespace.labels` | Namespace labels | `{"pepr.dev": ""}` |
| `uuid` | Unique identifier for the module | `hub-operator` |
| `admission.*` | Admission controller configurations | Various, see subparameters below |
| `watcher.*` | Watcher configurations | Various, see subparameters below |

### Admission and Watcher Subparameters

| Subparameter | Description |
|----------------------------------------------|----------------------------------------------|
| `failurePolicy` | Webhook failure policy [Ignore, Fail] |
| `webhookTimeout` | Timeout seconds for webhooks [1 - 30] |
| `env` | Container environment variables |
| `image` | Container image |
| `annotations` | Deployment annotations |
| `labels` | Deployment labels |
| `securityContext` | Pod security context |
| `resources` | Resource limits |
| `containerSecurityContext` | Container's security context |
| `nodeSelector` | Node selection constraints |
| `tolerations` | Tolerations to taints |
| `affinity` | Node scheduling options |

Note: Replace `*` with `admission` or `watcher` as needed to apply settings specifically for each part.

## Customizing with package.json

Below are the available configurations through `package.json`.

### package.json Configurations Table

| Field | Description | Example Values |
|------------------|----------------------------------------|---------------------------------|
| `name` | User-defined name of the module | `pepr-test-module` |
| `uuid` | Unique identifier for the module | `hub-operator` |
| `onError` | Behavior of the webhook failure policy | `reject`, `ignore` |
| `webhookTimeout` | Webhook timeout in seconds | `1` - `30` |
| `customLabels` | Custom labels for namespaces | `{namespace: {}}` |
| `alwaysIgnore` | Conditions to always ignore | `{namespaces: [], labels: []}` |
| `includedFiles` | For working with WebAssembly | ["main.wasm", "wasm_exec.js"] |
| `env` | Environment variables for the container| `{LOG_LEVEL: "warn"}` |

These tables provide a comprehensive overview of the fields available for customization within the Helm overrides and the `package.json` file. Modify these according to your deployment requirements.

0 comments on commit fb11108

Please sign in to comment.