Skip to content

Commit

Permalink
docs(faq): add patch example (#452)
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Bouquillon authored Dec 18, 2023
1 parent 65c783e commit eeb14d5
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions docs/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,28 @@ We want a full portable and sef-hostable solution from repositories, to CI/CD.

see [🐉 paradigm](./advanced/paradigm.md) for more detailed explanation.

## Patch output manifests

If you want full control over the manifests output, just add a `.kontinuous/paches/my-patch.js`

```js
/*
Patch manifests
*/
module.exports = (manifests) => {
for (const manifest of manifests) {
const { kind } = manifest;
if (kind === "Ingress") {
manifest.metadata.labels = {
...manifest.metadata.labels,
hello: "world",
};
}
}
return manifests;
};
```

## Disable some plugin

In your `.kontinuous/config.yaml` :
Expand Down

0 comments on commit eeb14d5

Please sign in to comment.