parent
2f46f5f385
commit
7c86b8dc4a
@ -1,5 +0,0 @@
|
|||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
||||||
kind: Kustomization
|
|
||||||
resources:
|
|
||||||
- presync.yaml
|
|
||||||
- postsync.yaml
|
|
@ -1,42 +0,0 @@
|
|||||||
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.57.5
|
|
||||||
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
|
|
@ -1,44 +0,0 @@
|
|||||||
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.57.5
|
|
||||||
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
|
|
@ -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.11
|
|
||||||
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/ && 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
|
|
@ -1,70 +0,0 @@
|
|||||||
apiVersion: batch/v1
|
|
||||||
kind: Job
|
|
||||||
metadata:
|
|
||||||
name: data-migration-presync
|
|
||||||
namespace: moh-uat
|
|
||||||
annotations:
|
|
||||||
argocd.argoproj.io/hook: PreSync
|
|
||||||
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.11
|
|
||||||
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/ && 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: "1"
|
|
||||||
- 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
|
|
@ -1,5 +0,0 @@
|
|||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
||||||
kind: Kustomization
|
|
||||||
resources:
|
|
||||||
- data-migration_presync.yaml
|
|
||||||
- data-migration_postsync.yaml
|
|
@ -1,72 +0,0 @@
|
|||||||
apiVersion: batch/v1
|
|
||||||
kind: Job
|
|
||||||
metadata:
|
|
||||||
name: before
|
|
||||||
namespace: moh-uat
|
|
||||||
annotations:
|
|
||||||
argocd.argoproj.io/hook: PreSync
|
|
||||||
argocd.argoproj.io/hook-delete-policy: HookSucceeded
|
|
||||||
argocd.argoproj.io/sync-wave: "1"
|
|
||||||
#argocd.argoproj.io/sync-options: Prune=false
|
|
||||||
spec:
|
|
||||||
backoffLimit: 3
|
|
||||||
template:
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- name: presync-pod
|
|
||||||
#image: registry.cloudsolutions.com.sa/vida-qa/csi-automation-initiator-stable:latest
|
|
||||||
image: registry.cloudsolutions.com.sa/vida-qa/csi-automation-initiator:3.0.1.0 #3.0.0.96.2 #3.0.0.88 #3.0.0.76.2 #3.0.0.74 #3.0.0.66 #3.0.0.69 #V3.0.0.46
|
|
||||||
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 /usr/app/automation/ && node index.js"]
|
|
||||||
#args: ["mkdir kafka && mkdir db-Change && mkdir screenPermissions && mkdir mongoIndex && mkdir featureToggles && mkdir LabelTranslations && mkdir masterData && mkdir BusinessPermissions && mkdir Configurations && 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/ && git config --global http.sslVerify false && git clone https://$(GITEA_UN):$(GITEA_PW)@git.cloudsolutions.com.sa/Automation/Configuration.git /usr/app/Configurations/ && node index.js && sleep 10"]
|
|
||||||
resources:
|
|
||||||
#limits:
|
|
||||||
#cpu: 750m
|
|
||||||
#memory: 3Gi
|
|
||||||
requests:
|
|
||||||
cpu: 128m
|
|
||||||
memory: 128Mi
|
|
||||||
env:
|
|
||||||
- name: owner
|
|
||||||
value: "CSI_DEV"
|
|
||||||
- name: repo
|
|
||||||
value: "CSI_DEV_CS"
|
|
||||||
- name: filePath
|
|
||||||
value: "kustomization.yaml"
|
|
||||||
- name: DISABLE_STEP_TRACKER
|
|
||||||
value: "true"
|
|
||||||
- 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
|
|
@ -1,4 +0,0 @@
|
|||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
||||||
kind: Kustomization
|
|
||||||
resources:
|
|
||||||
- PreSync/dbsync.yaml
|
|
@ -1,150 +0,0 @@
|
|||||||
apiVersion: batch/v1
|
|
||||||
kind: Job
|
|
||||||
metadata:
|
|
||||||
name: before
|
|
||||||
namespace: moh-uat
|
|
||||||
annotations:
|
|
||||||
argocd.argoproj.io/hook: PreSync
|
|
||||||
argocd.argoproj.io/hook-delete-policy: HookSucceeded
|
|
||||||
argocd.argoproj.io/sync-wave: "1"
|
|
||||||
#argocd.argoproj.io/sync-options: Prune=false
|
|
||||||
spec:
|
|
||||||
backoffLimit: 3
|
|
||||||
template:
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- name: presync-pod
|
|
||||||
image: registry.cloudsolutions.com.sa/vida-qa/csi-automation-initiator:3.0.0.72
|
|
||||||
imagePullPolicy: IfNotPresent
|
|
||||||
command: ["/bin/sh", "-c"]
|
|
||||||
args:
|
|
||||||
- |
|
|
||||||
# Step 1: Navigate to the app directory
|
|
||||||
git config --global http.sslVerify false &&
|
|
||||||
cd /usr/app/automation &&
|
|
||||||
|
|
||||||
# Step 2: Check if it's a valid Git repository, initialize if not
|
|
||||||
if [ ! -d .git ]; then
|
|
||||||
echo "Initializing Git repository in /usr/app/automation" &&
|
|
||||||
git clone -c https://$(GITEA_UN):$(GITEA_PW)@git.cloudsolutions.com.sa/Automation/Automation.git ./
|
|
||||||
fi &&
|
|
||||||
|
|
||||||
# Step 3: Pull the latest changes from the 'main' branch directly into the current directory
|
|
||||||
git pull origin main &&
|
|
||||||
echo "Pulled latest changes from 'main' branch." &&
|
|
||||||
|
|
||||||
ls -la &&
|
|
||||||
cd ../ &&
|
|
||||||
ls -la &&
|
|
||||||
pwd &&
|
|
||||||
|
|
||||||
# Step 5: Perform your database sync operation (replace with your actual command)
|
|
||||||
node /usr/app/index.js
|
|
||||||
|
|
||||||
##--new change end
|
|
||||||
|
|
||||||
|
|
||||||
# # Step 1: Create directory, configure Git, and clone repository
|
|
||||||
|
|
||||||
# cd /usr/app/automation/ &&
|
|
||||||
# rm -rf * &&
|
|
||||||
# rm -rf .git &&
|
|
||||||
# mkdir -p /usr/app/automation &&
|
|
||||||
|
|
||||||
# # Step 2: Check if the folder 'Automation' exists in /usr/app/automation and handle concurrent cloning
|
|
||||||
# git config --global http.sslVerify false &&
|
|
||||||
# #cd /usr/app/automation/ &&
|
|
||||||
# ls -al /usr/app/automation/ &&
|
|
||||||
|
|
||||||
# #-- Clone condition start
|
|
||||||
# # Step 1: Check if the directory is empty
|
|
||||||
# if [ -z "$(ls -A /usr/app/automation/)" ]; then
|
|
||||||
# # Directory is empty, clone the repository
|
|
||||||
# echo "Directory is empty. Cloning repository..." &&
|
|
||||||
# git config --global http.sslVerify false &&
|
|
||||||
# #git clone --depth 1 --branch main https://$(GITEA_UN):$(GITEA_PW)@git.cloudsolutions.com.sa/Automation/Automation.git &&
|
|
||||||
# git config --global init.defaultBranch main
|
|
||||||
# git init
|
|
||||||
# git pull https://$(GITEA_UN):$(GITEA_PW)@git.cloudsolutions.com.sa/Automation/Automation.git /usr/app/automation/ &&
|
|
||||||
# echo "Repository cloned successfully from branch main."
|
|
||||||
# else
|
|
||||||
# # Directory is not empty, pull the latest changes
|
|
||||||
# echo "Directory is not empty. Pulling the latest changes..." &&
|
|
||||||
# if [ -d /usr/app/automation/.git ]; then
|
|
||||||
# #cd /usr/app/automation/Automation/ &&
|
|
||||||
# git config --global http.sslVerify false &&
|
|
||||||
# git pull https://$(GITEA_UN):$(GITEA_PW)@git.cloudsolutions.com.sa/Automation/Automation.git /usr/app/automation/ &&
|
|
||||||
# echo "Pulled latest changes from branch main."
|
|
||||||
# echo "Here's directory list"
|
|
||||||
# ls -al /usr/app/automation/
|
|
||||||
# echo "Here's Current folder path"
|
|
||||||
# pwd
|
|
||||||
# else
|
|
||||||
# echo "Directory contains files but is not a valid Git repository. Exiting..." &&
|
|
||||||
# exit 1
|
|
||||||
# fi
|
|
||||||
# fi &&
|
|
||||||
# #-- Clone condition end
|
|
||||||
|
|
||||||
# # Step 3: Run the Node.js application
|
|
||||||
# sleep 10 &&
|
|
||||||
# node /usr/app/index.js
|
|
||||||
|
|
||||||
# # Step 4: Sleep test
|
|
||||||
# #sleep infinity
|
|
||||||
|
|
||||||
volumeMounts:
|
|
||||||
- name: git-clone
|
|
||||||
mountPath: /usr/app/automation/
|
|
||||||
resources:
|
|
||||||
limits:
|
|
||||||
cpu: 300m
|
|
||||||
memory: 1Gi
|
|
||||||
requests:
|
|
||||||
cpu: 250m
|
|
||||||
memory: 256Mi
|
|
||||||
env:
|
|
||||||
- name: owner
|
|
||||||
value: "CSI_DEV"
|
|
||||||
- name: repo
|
|
||||||
value: "CSI_DEV"
|
|
||||||
- name: filePath
|
|
||||||
value: "kustomization.yaml"
|
|
||||||
- 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
|
|
||||||
volumes:
|
|
||||||
- name: git-clone
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: pre-sync-pvc
|
|
||||||
imagePullSecrets:
|
|
||||||
- name: regcred
|
|
@ -1,4 +0,0 @@
|
|||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
||||||
kind: Kustomization
|
|
||||||
resources:
|
|
||||||
- PreSync/dbsyncwithpv.yaml
|
|
@ -1,63 +0,0 @@
|
|||||||
apiVersion: batch/v1
|
|
||||||
kind: Job
|
|
||||||
metadata:
|
|
||||||
name: before
|
|
||||||
namespace: moh-uat
|
|
||||||
annotations:
|
|
||||||
argocd.argoproj.io/hook: PreSync
|
|
||||||
argocd.argoproj.io/hook-delete-policy: HookSucceeded
|
|
||||||
#argocd.argoproj.io/sync-options: Prune=false
|
|
||||||
spec:
|
|
||||||
backoffLimit: 2
|
|
||||||
template:
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- name: presync-pod
|
|
||||||
image: harbor.moh.gov.sa/vidamoh/csi-database-initiator:V1.0.0.125
|
|
||||||
imagePullPolicy: IfNotPresent
|
|
||||||
resources:
|
|
||||||
limits:
|
|
||||||
cpu: 300m
|
|
||||||
memory: 1Gi
|
|
||||||
requests:
|
|
||||||
cpu: 250m
|
|
||||||
memory: 256Mi
|
|
||||||
env:
|
|
||||||
# - name: CSI_MODULENAME
|
|
||||||
# value: "csi-rms-masterdata-java-sev"
|
|
||||||
# - name: CSI_DATA_VERSION
|
|
||||||
# value: "4.0.127.0"
|
|
||||||
- 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
|
|
@ -1,4 +0,0 @@
|
|||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
||||||
kind: Kustomization
|
|
||||||
resources:
|
|
||||||
- PreSync/dbsync.yaml
|
|
@ -1 +0,0 @@
|
|||||||
---
|
|
Loading…
Reference in new issue