apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- https://git.cloudsolutions.com.sa/Ishrath.Ahamed/CENTRAL-BASE-REPO/rms/mlmui
- ../../../DM-Initiator/

images:
- name: harbor.moh.gov.sa/vidamoh/mlm-ui
  newName: registry.cloudsolutions.com.sa/vida-qa/mlm-ui
  newTag: 4.2503_1_D2

namespace: csi-uat

patchesJson6902:
- target:
    group: batch
    version: v1
    kind: Job
    name: .*
  patch: |
    - op: replace
      path: /metadata/name
      value: before-csi-mlm-ui
    - op: add
      path: /spec/template/spec/containers/0/env/-
      value:
        name: CSI_PROJECT_NAME
        value: "csi-mlm-ui"

- target:
    group: batch
    version: v1
    kind: Job
    name: sync-presync
  patch: |
    - op: replace
      path: /metadata/name
      value: before-csi-mlm-ui
      
- target:
    group: batch
    version: v1
    kind: Job
    name: sync-postsync
  patch: |-
    - op: replace
      path: /metadata/name
      value: after-csi-mlm-ui