Coder Social home page Coder Social logo

trendyol / injectorctl Goto Github PK

View Code? Open in Web Editor NEW
3.0 8.0 1.0 23 KB

:whale: 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: Apache License 2.0

Dockerfile 5.50% Go 92.22% Shell 2.28%
injector k8s admission-controller admission-webhook modifier

injectorctl's Introduction

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

๐Ÿ  Homepage

โœจ 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

injectorctl's People

Contributors

developer-guy avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.