From 7aa97c5a192a400d569f43c7dd9e795d31791bb7 Mon Sep 17 00:00:00 2001 From: Ishrath Ahamed Date: Thu, 29 May 2025 12:02:01 +0530 Subject: [PATCH] Remove data migration post-sync job configuration and its reference from kustomization.yaml --- Sync-DM/data-migration_postync.yaml | 70 ----------------------------- Sync-DM/kustomization.yaml | 4 -- 2 files changed, 74 deletions(-) delete mode 100644 Sync-DM/data-migration_postync.yaml delete mode 100644 Sync-DM/kustomization.yaml diff --git a/Sync-DM/data-migration_postync.yaml b/Sync-DM/data-migration_postync.yaml deleted file mode 100644 index ff0ef81..0000000 --- a/Sync-DM/data-migration_postync.yaml +++ /dev/null @@ -1,70 +0,0 @@ -apiVersion: batch/v1 -kind: Job -metadata: - name: data-migration-postsync - namespace: moh-uat - annotations: - argocd.argoproj.io/hook: PostSync - argocd.argoproj.io/hook-delete-policy: HookSucceeded - argocd.argoproj.io/sync-wave: "2" - #argocd.argoproj.io/sync-options: Prune=false -spec: - backoffLimit: 3 - template: - spec: - containers: - - name: presync-pod - image: registry.cloudsolutions.com.sa/vida-qa/csi-data-migration-initiator:4.0.27.17 - imagePullPolicy: IfNotPresent - command: ["/bin/sh", "-c"] - args: ["mkdir automation && git config --global http.sslVerify false && git clone --depth 1 https://$(GITEA_UN):$(GITEA_PW)@git.cloudsolutions.com.sa/Automation/Automation.git /app/automation/ && sleep 3600 && python3 main.py "] - resources: - limits: - cpu: 500m - memory: 3Gi - requests: - cpu: 250m - memory: 256Mi - env: - - name: owner - value: "CSI_DEV" - - name: repo - value: "CSI_DEV_CS" - - name: filePath - value: "kustomization.yaml" - - name: MIGRATION_TYPE - value: "2" - - name: active_profile - valueFrom: - configMapKeyRef: - key: activeProfile - name: service-configs - - name: SPRING_JPA_HIBERNATE_DIALECT - valueFrom: - configMapKeyRef: - key: db-dialect - name: service-configs - - name: SPRING_JPA_DATABASE-PLATFORM - valueFrom: - configMapKeyRef: - key: db-dialect - name: service-configs - - name: configserver - valueFrom: - configMapKeyRef: - key: config_server - name: service-configs - - name: hostname - value: csi-java-ehr-config - 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/Sync-DM/kustomization.yaml b/Sync-DM/kustomization.yaml deleted file mode 100644 index d689da6..0000000 --- a/Sync-DM/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- data-migration_postync.yaml \ No newline at end of file