atomist / sdm-pack-k8s

Extension Pack for an Atomist SDM to integrate Kubernetes deployments
Apache License 2.0
3 stars 2 forks source link

Add sync mode of operation #45

Closed ddgenome closed 5 years ago

ddgenome commented 5 years ago

Add mode of operation that syncs specs in cluster with specs in a repository branch. When it starts up, it will make sure the cluster and repo match. As image link events occur, it will update specs in both the repo and cluster as appropriate. It should also subscribe to pushes in the repo of record in case people update specs manually. It can also have a polling operation that checks for divergence.

ddgenome commented 5 years ago

We will need some sort of encryption for secrets.

ddgenome commented 5 years ago

Sync on startup is complete.

ddgenome commented 5 years ago

Sync on new commits to repo is complete.

Only thing left is to update repo when kubernetesDeployHandler upserts resources and when the delete app command handler deletes them.