An open API service indexing awesome lists of open source software.

https://github.com/score-spec/community-patchers

A community-driven library of score-compose and score-k8s patch templates.
https://github.com/score-spec/community-patchers

docker docker-compose kubernetes score score-compose score-k8s

Last synced: 5 months ago
JSON representation

A community-driven library of score-compose and score-k8s patch templates.

Awesome Lists containing this project

README

          

# community-patchers

Since `score-compose` version [`0.27.0`](https://github.com/score-spec/score-compose/releases/tag/0.27.0) and `score-k8s` version [`0.4.0`](https://github.com/score-spec/score-k8s/releases/tag/0.4.0), as Platform Engineers you can patch the default Workload manifests generated by `score-compose|k8s generate`. Seemlessly for your Developers, by using `score-compose|k8s init --patch-templates`.

This repository is a library of patch templates examples that you can use with either `score-compose` or `score-k8s`.

_Note: Do you have other examples that you would like to see in this list? Please file an issue in this repository, thanks! We'll find someone in the community willing to help you on this. Or do you have your own patch templates that you would like to share with the community? Please add them in the repository by opening a PR, thanks!_

## For `score-compose`

- `dapr.tpl`
- `microcks.tpl`
- `ollama.tpl`
- `unprivileged.tpl`

Example of usage:
```bash
score-compose init \
--patch-templates https://raw.githubusercontent.com/score-spec/community-patchers/refs/heads/main/score-compose/dapr.tpl \
--patch-templates https://raw.githubusercontent.com/score-spec/community-patchers/refs/heads/main/score-compose/microcks.tpl \
--patch-templates https://raw.githubusercontent.com/score-spec/community-patchers/refs/heads/main/score-compose/ollama.tpl \
--patch-templates https://raw.githubusercontent.com/score-spec/community-patchers/refs/heads/main/score-compose/unprivileged.tpl
```

## For `score-k8s`

- `delete-default-manifests.tpl`
- `namespace-pss-restricted.tpl`
- `namespace-with-allow-ingress-within-namespace-netpol.tpl`
- `namespace-with-deny-all-netpol.tpl`
- `service-account.tpl`
- `service-account-admin.tpl`
- `statefulset.tpl`
- `unprivileged.tpl`

Example of usage:
```bash
score-k8s init \
--patch-templates https://raw.githubusercontent.com/score-spec/community-patchers/refs/heads/main/score-k8s/unprivileged.tpl \
--patch-templates https://raw.githubusercontent.com/score-spec/community-patchers/refs/heads/main/score-k8s/service-account.tpl
```

## Examples by the community using this library

- [Deploy Backstage with Score](https://medium.com/@mabenoit/deploy-backstage-with-score-45bb2d7c2d90)
- [Nginx Score demo](https://github.com/mathieu-benoit/nginx-score-demo)
- [.NET Score demo](https://github.com/mathieu-benoit/sail-sharp)
- [Dapr Score demo](https://github.com/mathieu-benoit/dapr-score-humanitec)

_Note: Do you have a repository, a blog post or a talk using this library? Please add your link in this list above by opening a PR in this repository, thanks!_