From f233bb240023cda1b966f44b24c049d626b99937 Mon Sep 17 00:00:00 2001 From: Ishrath Ahamed Date: Thu, 3 Apr 2025 12:27:17 +0530 Subject: [PATCH] Add DM-Initiator kustomization and sync job configurations --- DM-Initiator/kustomization.yaml | 5 +++ DM-Initiator/postsync.yaml | 42 ++++++++++++++++++ DM-Initiator/presync.yaml | 44 +++++++++++++++++++ .../kustomization.yaml | 2 +- 4 files changed, 92 insertions(+), 1 deletion(-) create mode 100644 DM-Initiator/kustomization.yaml create mode 100644 DM-Initiator/postsync.yaml create mode 100644 DM-Initiator/presync.yaml diff --git a/DM-Initiator/kustomization.yaml b/DM-Initiator/kustomization.yaml new file mode 100644 index 0000000..3802ea0 --- /dev/null +++ b/DM-Initiator/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - presync.yaml + - postsync.yaml \ No newline at end of file diff --git a/DM-Initiator/postsync.yaml b/DM-Initiator/postsync.yaml new file mode 100644 index 0000000..7e03387 --- /dev/null +++ b/DM-Initiator/postsync.yaml @@ -0,0 +1,42 @@ +apiVersion: batch/v1 +kind: Job +metadata: + name: sync-postsync + namespace: moh-uat + annotations: + argocd.argoproj.io/hook: PostSync +# argocd.argoproj.io/hook-delete-policy: HookSucceeded +spec: + backoffLimit: 3 + template: + spec: + containers: + - name: postsync-pod + image: registry.cloudsolutions.com.sa/vida-qa/csi-data-migration-initiator:4.0.1 + imagePullPolicy: IfNotPresent + resources: + limits: + cpu: 500m + memory: 3Gi + requests: + cpu: 250m + memory: 256Mi + env: + - name: MIGRATION_TYPE + value: "2" + - name: owner + value: "CSI-UAT" + - name: repo + value: "CSI_UAT" + envFrom: + - configMapRef: + name: service-configs + - secretRef: + name: service-configs-secret + - configMapRef: + name: init-database-configs + - secretRef: + name: init-database-secrets + restartPolicy: Never + imagePullSecrets: + - name: regcred \ No newline at end of file diff --git a/DM-Initiator/presync.yaml b/DM-Initiator/presync.yaml new file mode 100644 index 0000000..f345ea6 --- /dev/null +++ b/DM-Initiator/presync.yaml @@ -0,0 +1,44 @@ +apiVersion: batch/v1 +kind: Job +metadata: + name: sync-presync + namespace: moh-uat + annotations: + argocd.argoproj.io/hook: PreSync +# argocd.argoproj.io/hook-delete-policy: HookSucceeded +spec: + backoffLimit: 3 + template: + spec: + containers: + - name: presync-pod + image: registry.cloudsolutions.com.sa/vida-qa/csi-data-migration-initiator:4.0.1 + imagePullPolicy: IfNotPresent + resources: + limits: + cpu: 500m + memory: 3Gi + requests: + cpu: 250m + memory: 256Mi + env: + - name: MIGRATION_TYPE + value: "1" + - name: isDropValidationDisabled + value: "true" + - name: owner + value: "CSI-UAT" + - name: repo + value: "CSI_UAT" + envFrom: + - configMapRef: + name: service-configs + - secretRef: + name: service-configs-secret + - configMapRef: + name: init-database-configs + - secretRef: + name: init-database-secrets + restartPolicy: Never + imagePullSecrets: + - name: regcred \ No newline at end of file diff --git a/UAT/base/base-utility-service-java-sev/kustomization.yaml b/UAT/base/base-utility-service-java-sev/kustomization.yaml index 9f4ce88..763017c 100644 --- a/UAT/base/base-utility-service-java-sev/kustomization.yaml +++ b/UAT/base/base-utility-service-java-sev/kustomization.yaml @@ -3,7 +3,7 @@ kind: Kustomization resources: - https://git.cloudsolutions.com.sa/BASE/CENTRAL-BASE-REPO/base/baseutilityservicejava -# - ../../../DM-Sync/ +- ../../../DM-Initiator/ patchesStrategicMerge: - patch-hpa.yaml