Skip to content

Commit

Permalink
chore: Argo cd conversion (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
TANguyen1893 authored May 28, 2022
1 parent 5f60e2a commit 70dc5d1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions deployment/base/cluster-role-binding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: k8s-wait-for
annotations:
argocd.argoproj.io/hook: PostSync
argocd.argoproj.io/hook-delete-policy: BeforeHookCreation
subjects:
- kind: ServiceAccount
name: default
Expand Down
3 changes: 3 additions & 0 deletions deployment/base/cluster-role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: k8s-wait-for
annotations:
argocd.argoproj.io/hook: PostSync
argocd.argoproj.io/hook-delete-policy: BeforeHookCreation
rules:
- apiGroups: ['']
resources: ['services', 'pods', 'jobs']
Expand Down
3 changes: 3 additions & 0 deletions deployment/base/database-migration-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ apiVersion: batch/v1
kind: Job
metadata:
name: database-migration-job
annotations:
argocd.argoproj.io/hook: PostSync
argocd.argoproj.io/hook-delete-policy: BeforeHookCreation
spec:
backoffLimit: 1 # allow for one re-try of the migration
template:
Expand Down

0 comments on commit 70dc5d1

Please sign in to comment.