apiVersion: batch/v1 kind: Job metadata: name: before namespace: moh-prod annotations: argocd.argoproj.io/hook: PreSync argocd.argoproj.io/hook-delete-policy: HookSucceeded spec: template: spec: containers: - name: presync-pod image: harbor.moh.gov.sa/vidamoh/csi-automation-initiator:V1.0.0.230 imagePullPolicy: IfNotPresent command: ["/bin/sh", "-c"] args: ["mkdir kafka && mkdir db-Change && mkdir screenPermissions && mkdir mongoIndex && mkdir featureToggles && mkdir LabelTranslations && mkdir masterData && mkdir BusinessPermissions && git config --global http.sslVerify false && git clone https://$(GITEA_UN):$(GITEA_PW)@git.cloudsolutions.com.sa/Automation/Kafka-topic-automation.git /usr/app/kafka/ && git config --global http.sslVerify false && git clone https://$(GITEA_UN):$(GITEA_PW)@git.cloudsolutions.com.sa/Automation/DB-Change-automation.git /usr/app/db-Change/ && git config --global http.sslVerify false && git clone https://$(GITEA_UN):$(GITEA_PW)@git.cloudsolutions.com.sa/Automation/Screen-permissions.git /usr/app/screenPermissions/ && git config --global http.sslVerify false && git clone https://$(GITEA_UN):$(GITEA_PW)@git.cloudsolutions.com.sa/Automation/MongoDB-indexes.git /usr/app/mongoIndex/ && git config --global http.sslVerify false && git clone https://$(GITEA_UN):$(GITEA_PW)@git.cloudsolutions.com.sa/Automation/Feature-Toggles.git /usr/app/featureToggles/ && git config --global http.sslVerify false && git clone https://$(GITEA_UN):$(GITEA_PW)@git.cloudsolutions.com.sa/Automation/LabelTranslations.git /usr/app/LabelTranslations/ && git config --global http.sslVerify false && git clone https://$(GITEA_UN):$(GITEA_PW)@git.cloudsolutions.com.sa/Automation/masterData.git /usr/app/masterData/ && git config --global http.sslVerify false && git clone https://$(GITEA_UN):$(GITEA_PW)@git.cloudsolutions.com.sa/Automation/Business-Permissions.git /usr/app/BusinessPermissions/ && node index.js && sleep 20"] resources: limits: cpu: 300m memory: 1Gi requests: cpu: 250m memory: 256Mi env: - 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