Skip to content

Latest commit

 

History

History
46 lines (27 loc) · 725 Bytes

README.md

File metadata and controls

46 lines (27 loc) · 725 Bytes

Tracking kubernetes configmaps with kosli

  1. download configmaps
  2. filter out generated fields in configmaps
  3. snapshot

1. Download configmaps

gcloud container clusters get-credentials autopilot-cluster-1 --region us-central1 --project test-kubernetes-environment

# Download Configmaps
./1-download-configmaps.sh -o snapdir gamestore

# Download CRDs
./1-download-configmaps.sh -o snapdir -c gamestore

2. Filter configmaps

source env/bin/activate

mkdir /tmp/snapdir
python src/filter_configmaps.py /tmp/snapdir

3. Snapshot downloaded configs

kosli snapshot server kubernetes-configurations \
  --paths "/tmp/snapdir/*"

Running the tests

pytest