Skip to content

Export snapshots to Git

Prerequisites

A running operator, a writable Git repository, and a credentials Secret. Start with Your first inventory for the full credential flow.

Apply

Use the validated minimal sample, then set its endpoint and Secret reference for your repository:

kubectl apply -f config/samples/kollect_v1alpha1_kollectsnapshotsink_git_minimal.yaml

Verify

kubectl wait --for=condition=ConnectionVerified ksnap/git-inventory-minimal -n default --timeout=90s
kubectl get ksnap/git-inventory-minimal -n default -o yaml

If it didn't work

Describe the sink and check repository permissions, TLS trust, branch, and Secret keys.

Cleanup

kubectl delete -f config/samples/kollect_v1alpha1_kollectsnapshotsink_git_minimal.yaml

Further reading

Snapshot sink reference ยท Git layout ADR