https://github.com/nicjohnson145/12tmpl
https://github.com/nicjohnson145/12tmpl
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/nicjohnson145/12tmpl
- Owner: nicjohnson145
- License: mit
- Created: 2024-09-11T01:26:04.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-09-11T02:17:03.000Z (8 months ago)
- Last Synced: 2025-02-02T06:41:28.287Z (3 months ago)
- Language: Dockerfile
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 12tmpl
> But why though?
There's lots of good software out there. But there's also a fair amount that insists that the entirety of the apps
configuration be present in one configuration file. This is great for simplicity, but is not so great when that config
file needs to contain secrets interspersed with plain config. This leaves those of us using a Kubernetes/GitOps
deployment model with 2 choices:* Put the whole config file in a Secret/SealedSecret
* Due the insecure thing and leave it all in a ConfigMapNeither really feel great. This repo is designed to be used as an init container for a pod, where the config file can be
stored as a ConfigMap, and any secret values therein replaced with [gomplate compatible
replacements](https://docs.gomplate.ca/). This init container will do the subsitutions and render the full config for
the main container in the pod.## Examples
See [a super basic example](./hack/basic-example/example.yaml) for an example usage