> For the complete documentation index, see [llms.txt](https://vault.koudingspawn.de/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://vault.koudingspawn.de/how-does-vault-crd-work.md).

# How does Vault-CRD work?

### How the creation workflow works

![](/files/-LA_6deH3NBK9gW2Yyw0)

A) The Vault-CRD receives event for new Vault resources\
B) Vault-CRD requests secret from HashiCorp Vault\
C) Vault-CRD generates new Kubernetes Secret

### How the updating workflow works

![](/files/-LA_7DReQ7lPMMrOqosS)

1\) Vault-CRD has a scheduled task that looks to the Secrets generated by it\
2\) It compares the Kubernetes Secret with the HashiCorp Vault state and updates the Kubernetes Secret if  necessary
