Files
k8s-configs/clusters/k8s-avroid-office.prod.local/namespaces/avroid-prod/automations-tools/webhook-receiver/argocd-apps-webhook-receiver-app.yaml
Boris Shestov 1efba5374d [DO-1689] Add deploy with argocd (!135)
[DO-1689] Add deploy with argocd

Co-authored-by: Boris Shestov <shestov1989@mail.ru>
Co-authored-by: Denis Patrakeev <denis.patrakeev@avroid.team>
Co-authored-by: Rustam Tagaev <rustam.tagaev@avroid.team>
Reviewed-on: https://git.avroid.tech/K8s/k8s-configs/pulls/135
Reviewed-by: Denis Patrakeev <denis.patrakeev@avroid.team>
Reviewed-by: Rustam Tagaev <rustam.tagaev@avroid.team>
2025-03-13 11:31:33 +03:00

52 lines
1.5 KiB
YAML

---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: webhook-receiver
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: webhook-receiver
destination:
server: https://kubernetes.default.svc
namespace: avroid-prod
sources:
- repoURL: https://git.avroid.tech/K8s/k8s-configs.git
targetRevision: master
ref: values
- repoURL: https://actual-devops.github.io/helm-charts
chart: "webhook-receiver"
targetRevision: 0.2.0
helm:
valueFiles:
- $values/clusters/k8s-avroid-office.prod.local/namespaces/avroid-prod/automations-tools/webhook-receiver/values-override.yaml
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- ApplyOutOfSyncOnly=true
- CreateNamespace=true
---
apiVersion: argoproj.io/v1alpha1
kind: AppProject
metadata:
name: webhook-receiver
namespace: argocd
# Finalizer that ensures that project is not deleted until it is not referenced by any application
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
sourceRepos:
- https://actual-devops.github.io/helm-charts
- https://git.avroid.tech/K8s/k8s-configs.git
# Only permit applications to deploy to the guestbook namespace in the same cluster
destinations:
- namespace: avroid-prod
server: https://kubernetes.default.svc
# Deny all cluster-scoped resources from being created, except for Namespace
clusterResourceWhitelist:
- group: ''
kind: Namespace