Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.
/ injectorctl Public archive

🐳 This is an modifier for valid Deployment and Pod YAML files , it takes a YAML file as an input and add pre-defined "metadata.annotations" on it and give it as output to stdout.

License

Notifications You must be signed in to change notification settings

Trendyol/injectorctl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to injectorctl 👋

Documentation

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

Demo

Install

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 .

Usage

injectorctl inject -f <file_path> or <stdin>

Run tests

$ 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

Author

👤 Trendyol

🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page. You can also take a look at the contributing guide.

Show your support

Give a ⭐️ if this project helped you!


This README was generated with ❤️ by readme-md-generator

About

🐳 This is an modifier for valid Deployment and Pod YAML files , it takes a YAML file as an input and add pre-defined "metadata.annotations" on it and give it as output to stdout.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published