GithubHelp home page GithubHelp logo

shubham25kr07 / helmsyncbot Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 10 KB

Automatically update the helmfile.yaml file by adding commit id and run the command to make the pod up.

Python 100.00%

helmsyncbot's Introduction

HelmSyncBot

Automatically update the helmfile.yaml file by adding commit id and run the command to make the pod up.

Note (Imp)

Do uncomment the helmfile.yaml file in kube-manifest for which you want to make the pod up.

Changes which can be done in helmfile_sync.py according to use-case.

  1. Add devstack_label on which you want to make pod up.
    devstack_label = 'shubham-kr-noob'
  2. If you want to deploy the pod with your commit id(i.e not master commit id), then in this function deployWithGivenCommitId() add like this repo_name_with_given_commit_id['dashboard'] = 'your_commit_id' , repo_name_with_given_commit_id['api'] = 'your_commit_id' etc..

One Time Setup

  1. Add GITHUB_TOKEN in ~/.bash_profile
  2. Add helmfile_directory_path in
    helmfile_directory_path = '/Users/shubham.k/Desktop/Razorpay/kube-manifests/helmfile'
  3. Add helmfile_yaml_path in
    helmfile_yaml_path = '/Users/shubham.k/Desktop/Razorpay/kube-manifests/helmfile/helmfile.yaml'

Install PyGithub library

pip3 install PyGithub

Run the file

python3 helmfile_sync.py

helmsyncbot's People

Contributors

shubham25kr07 avatar

Watchers

 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.