Skip to content

Commit

Permalink
adding argo sync waves to minio for deployment order
Browse files Browse the repository at this point in the history
  • Loading branch information
asheet committed May 30, 2024
1 parent 557525c commit 6fe22ed
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 1 deletion.
2 changes: 2 additions & 0 deletions components/apps/create-bucket-job/base/create-bucket-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ apiVersion: batch/v1
kind: Job
metadata:
name: create-buckets
annotations:
argocd.argoproj.io/sync-wave: "-2"
spec:
selector: {}
template:
Expand Down
2 changes: 2 additions & 0 deletions components/apps/minio/base/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ kind: Deployment
apiVersion: apps/v1
metadata:
name: minio
annotations:
argocd.argoproj.io/sync-wave: "-3"
spec:
replicas: 1
selector:
Expand Down
3 changes: 2 additions & 1 deletion components/apps/minio/base/pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: minio

annotations:
argocd.argoproj.io/sync-wave: "-3"
spec:
accessModes:
- ReadWriteOnce
Expand Down
4 changes: 4 additions & 0 deletions components/apps/minio/base/routes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ kind: Route
apiVersion: route.openshift.io/v1
metadata:
name: minio-api
annotations:
argocd.argoproj.io/sync-wave: "-3"
spec:
to:
kind: Service
Expand All @@ -19,6 +21,8 @@ kind: Route
apiVersion: route.openshift.io/v1
metadata:
name: minio-ui
annotations:
argocd.argoproj.io/sync-wave: "-3"
spec:
to:
kind: Service
Expand Down
2 changes: 2 additions & 0 deletions components/apps/minio/base/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ kind: Secret
apiVersion: v1
metadata:
name: minio
annotations:
argocd.argoproj.io/sync-wave: "-3"
stringData:
# change the username and password to your own values.
# ensure that the user is at least 3 characters long and the password at least 8
Expand Down
2 changes: 2 additions & 0 deletions components/apps/minio/base/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ kind: Service
apiVersion: v1
metadata:
name: minio
annotations:
argocd.argoproj.io/sync-wave: "-3"
spec:
ipFamilies:
- IPv4
Expand Down
2 changes: 2 additions & 0 deletions components/apps/upload-model-job/base/upload-model-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ apiVersion: batch/v1
kind: Job
metadata:
name: upload-model-to-s3
annotations:
argocd.argoproj.io/sync-wave: "-1"
spec:
selector: {}
template:
Expand Down

0 comments on commit 6fe22ed

Please sign in to comment.