Remove post-sync.yaml files and update kustomization.yaml files to clean up resources and adjust image tags for various services

main
Ishrath Ahamed 1 week ago
parent e8c1a6556b
commit eaac1367fe

@ -3,7 +3,6 @@ kind: Kustomization
resources:
- https://git.cloudsolutions.com.sa/Ishrath.Ahamed/CENTRAL-BASE-REPO/billing/bmbillingapprovaljava
- ../../../DM-Initiator/
- post-sync.yaml
patchesStrategicMerge:
- hpa.yaml

@ -1,34 +0,0 @@
apiVersion: batch/v1
kind: Job
metadata:
name: post
namespace: moh-uat
annotations:
argocd.argoproj.io/hook: PostSync
argocd.argoproj.io/hook-delete-policy: HookSucceeded
#argocd.argoproj.io/sync-options: Prune=false
spec:
template:
spec:
containers:
- name: postsync-pod
image: registry.cloudsolutions.com.sa/kube/curl
imagePullPolicy: IfNotPresent
command: ["/bin/sh", "-c"]
args:
- |
curl -X POST -L --user $username:$token --location 'https://10.200.222.150/view/09-Automation%20Builds/job/AUT-Build-Java21/buildWithParameters?token=ScheduledBuild&Project=aut&Service=billing_api_automation&Branch=main' -k
resources:
limits:
cpu: 300m
memory: 1Gi
requests:
cpu: 250m
memory: 256Mi
envFrom:
- secretRef:
name: automation-secret
restartPolicy: Never
imagePullSecrets:
- name: regcred

@ -7,7 +7,6 @@ resources:
patchesStrategicMerge:
- hpa.yaml
images:
- name: harbor.moh.gov.sa/vidamoh/csi-bm-billing-java-service
newName: registry.cloudsolutions.com.sa/vida-qa/csi-bm-billing-java-service

@ -1,34 +0,0 @@
apiVersion: batch/v1
kind: Job
metadata:
name: post
namespace: moh-uat
annotations:
argocd.argoproj.io/hook: PostSync
argocd.argoproj.io/hook-delete-policy: HookSucceeded
#argocd.argoproj.io/sync-options: Prune=false
spec:
template:
spec:
containers:
- name: postsync-pod
image: registry.cloudsolutions.com.sa/kube/curl
imagePullPolicy: IfNotPresent
command: ["/bin/sh", "-c"]
args:
- |
curl -X POST -L --user $username:$token --location 'https://10.200.222.150/view/09-Automation%20Builds/job/AUT-Build-Java21/buildWithParameters?token=ScheduledBuild&Project=aut&Service=billing_api_automation&Branch=main' -k
resources:
limits:
cpu: 300m
memory: 1Gi
requests:
cpu: 250m
memory: 256Mi
envFrom:
- secretRef:
name: automation-secret
restartPolicy: Never
imagePullSecrets:
- name: regcred

@ -1,34 +0,0 @@
apiVersion: batch/v1
kind: Job
metadata:
name: post
namespace: moh-uat
annotations:
argocd.argoproj.io/hook: PostSync
argocd.argoproj.io/hook-delete-policy: HookSucceeded
#argocd.argoproj.io/sync-options: Prune=false
spec:
template:
spec:
containers:
- name: postsync-pod
image: registry.cloudsolutions.com.sa/kube/curl
imagePullPolicy: IfNotPresent
command: ["/bin/sh", "-c"]
args:
- |
curl -X POST -L --user $username:$token --location 'https://10.200.222.150/view/09-Automation%20Builds/job/AUT-Build-Java21/buildWithParameters?token=ScheduledBuild&Project=aut&Service=billing_api_automation&Branch=main' -k
resources:
limits:
cpu: 300m
memory: 1Gi
requests:
cpu: 250m
memory: 256Mi
envFrom:
- secretRef:
name: automation-secret
restartPolicy: Never
imagePullSecrets:
- name: regcred

@ -1,34 +0,0 @@
apiVersion: batch/v1
kind: Job
metadata:
name: post
namespace: moh-uat
annotations:
argocd.argoproj.io/hook: PostSync
argocd.argoproj.io/hook-delete-policy: HookSucceeded
#argocd.argoproj.io/sync-options: Prune=false
spec:
template:
spec:
containers:
- name: postsync-pod
image: registry.cloudsolutions.com.sa/kube/curl
imagePullPolicy: IfNotPresent
command: ["/bin/sh", "-c"]
args:
- |
curl -X POST -L --user $username:$token --location 'https://10.200.222.150/view/09-Automation%20Builds/job/AUT-Build-Java21/buildWithParameters?token=ScheduledBuild&Project=aut&Service=billing_api_automation&Branch=main' -k
resources:
limits:
cpu: 300m
memory: 1Gi
requests:
cpu: 250m
memory: 256Mi
envFrom:
- secretRef:
name: automation-secret
restartPolicy: Never
imagePullSecrets:
- name: regcred

@ -1,34 +0,0 @@
apiVersion: batch/v1
kind: Job
metadata:
name: post
namespace: moh-uat
annotations:
argocd.argoproj.io/hook: PostSync
argocd.argoproj.io/hook-delete-policy: HookSucceeded
#argocd.argoproj.io/sync-options: Prune=false
spec:
template:
spec:
containers:
- name: postsync-pod
image: registry.cloudsolutions.com.sa/kube/curl
imagePullPolicy: IfNotPresent
command: ["/bin/sh", "-c"]
args:
- |
curl -X POST -L --user $username:$token --location 'https://10.200.222.150/view/09-Automation%20Builds/job/AUT-Build-Java21/buildWithParameters?token=ScheduledBuild&Project=aut&Service=billing_api_automation&Branch=main' -k
resources:
limits:
cpu: 300m
memory: 1Gi
requests:
cpu: 250m
memory: 256Mi
envFrom:
- secretRef:
name: automation-secret
restartPolicy: Never
imagePullSecrets:
- name: regcred

@ -1,34 +0,0 @@
apiVersion: batch/v1
kind: Job
metadata:
name: post
namespace: moh-uat
annotations:
argocd.argoproj.io/hook: PostSync
argocd.argoproj.io/hook-delete-policy: HookSucceeded
#argocd.argoproj.io/sync-options: Prune=false
spec:
template:
spec:
containers:
- name: postsync-pod
image: registry.cloudsolutions.com.sa/kube/curl
imagePullPolicy: IfNotPresent
command: ["/bin/sh", "-c"]
args:
- |
curl -X POST -L --user $username:$token --location 'https://10.200.222.150/view/09-Automation%20Builds/job/AUT-Build-Java21/buildWithParameters?token=ScheduledBuild&Project=aut&Service=Gryffindor-api-autoday_bloodbank&Branch=main' -k
resources:
limits:
cpu: 300m
memory: 1Gi
requests:
cpu: 250m
memory: 256Mi
envFrom:
- secretRef:
name: init-database-secrets #automation-secret
restartPolicy: Never
imagePullSecrets:
- name: regcred

@ -2,9 +2,9 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- https://git.cloudsolutions.com.sa/Ishrath.Ahamed/CENTRAL-BASE-REPO/bloodbank/bloodtransfusionjava
- post-sync.yaml
patchesStrategicMerge:
- hpa.yaml
images:
- name: harbor.moh.gov.sa/vidamoh/csi-blood-transfusion-java

@ -1,34 +0,0 @@
apiVersion: batch/v1
kind: Job
metadata:
name: post
namespace: moh-uat
annotations:
argocd.argoproj.io/hook: PostSync
argocd.argoproj.io/hook-delete-policy: HookSucceeded
#argocd.argoproj.io/sync-options: Prune=false
spec:
template:
spec:
containers:
- name: postsync-pod
image: registry.cloudsolutions.com.sa/kube/curl
imagePullPolicy: IfNotPresent
command: ["/bin/sh", "-c"]
args:
- |
curl -X POST -L --user $username:$token --location 'https://10.200.222.150/view/09-Automation%20Builds/job/AUT-Build-Java21/buildWithParameters?token=ScheduledBuild&Project=aut&Service=Gryffindor-api-autoday_bloodbank&Branch=main' -k
resources:
limits:
cpu: 300m
memory: 1Gi
requests:
cpu: 250m
memory: 256Mi
envFrom:
- secretRef:
name: automation-secret
restartPolicy: Never
imagePullSecrets:
- name: regcred

@ -3,7 +3,6 @@ kind: Kustomization
resources:
- https://git.cloudsolutions.com.sa/Ishrath.Ahamed/CENTRAL-BASE-REPO/bloodbank/bloodbankjava
- ../../../DM-Initiator/
- post-sync.yaml
patchesStrategicMerge:
- hpa.yaml

@ -1,34 +0,0 @@
apiVersion: batch/v1
kind: Job
metadata:
name: post
namespace: moh-uat
annotations:
argocd.argoproj.io/hook: PostSync
argocd.argoproj.io/hook-delete-policy: HookSucceeded
#argocd.argoproj.io/sync-options: Prune=false
spec:
template:
spec:
containers:
- name: postsync-pod
image: registry.cloudsolutions.com.sa/kube/curl
imagePullPolicy: IfNotPresent
command: ["/bin/sh", "-c"]
args:
- |
curl -X POST -L --user $username:$token --location 'https://10.200.222.150/view/09-Automation%20Builds/job/AUT-Build-Java21/buildWithParameters?token=ScheduledBuild&Project=aut&Service=Gryffindor-api-autoday_bloodbank&Branch=main' -k
resources:
limits:
cpu: 300m
memory: 1Gi
requests:
cpu: 250m
memory: 256Mi
envFrom:
- secretRef:
name: automation-secret
restartPolicy: Never
imagePullSecrets:
- name: regcred

@ -1,19 +1,16 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- https://git.cloudsolutions.com.sa/Ishrath.Ahamed/CENTRAL-BASE-REPO/bloodbank/csinetbbmgtsrv
patchesStrategicMerge:
- patch-hpa.yaml
images:
- name: harbor.moh.gov.sa/vidamoh/csi-net-bb-mgt-srv
newName: registry.cloudsolutions.com.sa/vida-qa/csi-net-bb-mgt-srv
newTag: 4.0.79.0-a127_dev
kind: Kustomization
namespace: csi-uat
patchesJson6902:
- patch: "- op: replace\n path: /metadata/name\n value: post-csinetbbmgtsrv\n namespace:\
\ moh-uat "
target:
group: batch
kind: Job
name: post
version: v1
patchesStrategicMerge:
- patch-hpa.yaml
resources:
- https://git.cloudsolutions.com.sa/Ishrath.Ahamed/CENTRAL-BASE-REPO/bloodbank/csinetbbmgtsrv

@ -10,7 +10,7 @@ patchesStrategicMerge:
images:
- name: harbor.moh.gov.sa/vidamoh/csi-rms-masterdata-java-sev
newName: registry.cloudsolutions.com.sa/vida-qa/csi-rms-masterdata-java-sev
newTag: V4.0.0325-876_qa
newTag: V4.0.0525_W3-1350_dev
namespace: csi-uat

Loading…
Cancel
Save