shubham25kr07 / HelmSyncBot

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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


Languages

Language:Python 100.0%