Skip to content

Simple tool for syncing Git repository with K8s ConfigMap or Secret

License

Notifications You must be signed in to change notification settings

wandera/git2kube

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git2kube - From Git to Kubernetes

Test Go Report Card GitHub release License: MIT

Tool for syncing git with Kubernetes.

Features

  • Synchronisation of Git repository with Kubernetes ConfigMap/Secret
    • One shot or periodic
    • Configurable healthcheck
    • Configurable labels and annotations
  • Configurable include/exclude rules for filtering files that should be synchronised
  • Ability to synchronise git into target folder using symlinks (suitable for sidecar deployments)
  • SSH key and Basic auth

Quickstart

Check out example folder that should get you started.

Docker repository

The tool is released as docker image as well, check the repository.

Documentation

  • docs - Generated documentation for the tool
  • example - Kubernetes deployment examples

How to develop

  • Tests are started by go test -v ./...
  • Or if you dont want to setup your local go env just use the provided Dockerfile