This project provide simple inject command to make it easy to work with our Mutating Admission Controller Webhook , in a nutshell it modifies given valid Deployment YAML file and gives output which is the modified YAML file
๐ Homepage
โจ Demo
You can directly install this project, clone this project and run :
$ go install
Or you can use docker image to build this project :
$ docker image build -t <your_id>/injectorctl .
injectorctl inject -f <file_path> or <stdin>
$ injectorctl inject -f $HOME/hello.yaml
or directly from image in two ways
$ docker container run --interactive <your_id>/injectorctl:latest -<./examples/pod.yaml
$ docker container run --interactive trendyoltech/injectorctl:latest -<<EOF
apiVersion: v1
kind: Pod
metadata:
labels:
pod: busybox
spec:
containers:
- name: busybox-container
image: busybox
command: ["/bin/sh"]
args: ["-c", "while true; do cat /var/busybox/config.txt; sleep 2; done"]
serviceAccountName: busybox-sa
EOF
๐ค Trendyol
- Website: https://stash.trendyol.com/scm/plat/injectorctl.git
- Github: @TrendyolTech
Contributions, issues and feature requests are welcome!
Feel free to check issues page. You can also take a look at the contributing guide.
Give a โญ๏ธ if this project helped you!
This README was generated with โค๏ธ by readme-md-generator