refactor: components

This commit is contained in:
auricom
2025-04-15 16:48:53 +02:00
parent 89beaf64a5
commit 7ad9789d31
77 changed files with 336 additions and 82 deletions

View File

@@ -0,0 +1,38 @@
# VolSync Template
## Flux Kustomization
This requires `postBuild` configured on the Flux Kustomization
```yaml
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: &app plex
namespace: flux-system
spec:
# ...
postBuild:
substitute:
APP: *app
VOLSYNC_CAPACITY: 5Gi
```
and then call the template in your applications `kustomization.yaml`
```yaml
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
# ...
- ../../../../components/volsync
```
## Required `postBuild` vars:
- `APP`: The application name
- `VOLSYNC_CAPACITY`: The PVC size
## Optional `postBuild` vars:
- TBD