https://github.com/shopstic/k8s-env-injector
A Kubernetes Admission Controller to inject node labels as environment variables for Pods.
https://github.com/shopstic/k8s-env-injector
admission-controller admission-webhook environment-variables kubernetes operator
Last synced: 7 months ago
JSON representation
A Kubernetes Admission Controller to inject node labels as environment variables for Pods.
- Host: GitHub
- URL: https://github.com/shopstic/k8s-env-injector
- Owner: shopstic
- License: apache-2.0
- Created: 2021-03-17T06:29:42.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-09-04T21:24:33.000Z (about 3 years ago)
- Last Synced: 2025-01-06T18:46:32.421Z (9 months ago)
- Topics: admission-controller, admission-webhook, environment-variables, kubernetes, operator
- Language: TypeScript
- Homepage:
- Size: 196 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Kubernetes ENV Injector
[](https://github.com/shopstic/k8s-env-injector/actions)
[](https://github.com/shopstic/k8s-env-injector/blob/main/LICENSE)The purpose of `k8s-env-injector` is to inject node labels as environment
variables to pods in a selected namespace.## Local development
Enter shell with `./shell.sh` and then watch for changes with `./cli.sh watch`.
## Deployment
Helm chart is provided in the `charts` directory.
### Using Helm chart
Values that always need to be specified:
- `mutationWebhook.namespaceSelector`. It should select only the namespace where
k8s-env-injector is deployed to.