Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

argocd after-push sync webhook #95

Merged
merged 8 commits into from
Jul 18, 2024
Merged

argocd after-push sync webhook #95

merged 8 commits into from
Jul 18, 2024

Conversation

sergs-pci
Copy link
Member

@sergs-pci sergs-pci commented Jul 16, 2024

Requirements

  • Argo CD polls Git repositories every three minutes to detect changes to the manifests. To eliminate this delay from polling, the server can be configured to receive webhook events. Argo CD supports Git webhook notifications from GitHub, GitLab

Description of the Change

Generate secret in the cli during cluster init, store this secret as parameter in the state, use this secret as env var in terraform vcs init process, save secret in the vault secrets(for Atlantis and for argocd usage), expose this secret through external secret, patch argocd-secret for using this secret. Make it available for both supported VCS(github&gitlab)

Documentation

https://argo-cd.readthedocs.io/en/stable/operator-manual/webhook/

@sergs-pci sergs-pci marked this pull request as draft July 16, 2024 17:48
@sergs-pci sergs-pci marked this pull request as ready for review July 17, 2024 17:39
@sergs-pci sergs-pci requested a review from all4code July 17, 2024 17:39
@sergs-pci sergs-pci changed the title argocd webhook argocd after-push sync webhook Jul 18, 2024
@sergs-pci sergs-pci merged commit c37ed3e into main Jul 18, 2024
@sergs-pci sergs-pci deleted the argocd-webhook branch July 18, 2024 09:05
@sergs-pci sergs-pci mentioned this pull request Jul 18, 2024
@sergs-pci sergs-pci added the enhancement New feature or request label Jul 18, 2024
alysenko-bekitzur pushed a commit that referenced this pull request Aug 9, 2024
* init argocd webhook - vcs tf modules

* argocd webhook in secrets tf module, update TERRAFORM-README.md files

* argocd secret structure fix

* argocd kustomize external secret and pathces for webhook events + refactor argocd->cd in vars

* feat: ARGO_INSTANCEID application.yaml (#96)

Co-authored-by: VADIM TSARFIN <[email protected]>

* vcs parametrisation token in argocd-secret

* add CD_PUSH_EVENT_WEBHOOK_SECRET param in Templating

---------

Co-authored-by: Vadim Tsarfin <[email protected]>
Co-authored-by: VADIM TSARFIN <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants