apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

# Common resources
resources:
  # Common ConfigMaps and Secrets
  - cm-common.yaml
  - secret-common.yaml
  - secret-imagepull.yaml

  # Ingress
  - ingress.yaml

  # user-service
  - user-service-deployment.yaml
  - user-service-service.yaml
  - user-service-cm-user-service.yaml
  - user-service-secret-user-service.yaml

  # event-service
  - event-service-deployment.yaml
  - event-service-service.yaml
  - event-service-cm-event-service.yaml
  - event-service-secret-event-service.yaml

  # ai-service
  - ai-service-deployment.yaml
  - ai-service-service.yaml
  - ai-service-cm-ai-service.yaml
  - ai-service-secret-ai-service.yaml

  # content-service
  - content-service-deployment.yaml
  - content-service-service.yaml
  - content-service-cm-content-service.yaml
  - content-service-secret-content-service.yaml

  # distribution-service
  - distribution-service-deployment.yaml
  - distribution-service-service.yaml
  - distribution-service-cm-distribution-service.yaml
  - distribution-service-secret-distribution-service.yaml

  # participation-service
  - participation-service-deployment.yaml
  - participation-service-service.yaml
  - participation-service-cm-participation-service.yaml
  - participation-service-secret-participation-service.yaml

  # analytics-service
  - analytics-service-deployment.yaml
  - analytics-service-service.yaml
  - analytics-service-cm-analytics-service.yaml
  - analytics-service-secret-analytics-service.yaml

# Common labels for all resources
commonLabels:
  app.kubernetes.io/managed-by: kustomize
  app.kubernetes.io/part-of: kt-event-marketing

# Image tag replacement (will be overridden by overlays)
images:
  - name: acrdigitalgarage01.azurecr.io/kt-event-marketing/user-service
    newTag: latest
  - name: acrdigitalgarage01.azurecr.io/kt-event-marketing/event-service
    newTag: latest
  - name: acrdigitalgarage01.azurecr.io/kt-event-marketing/ai-service
    newTag: latest
  - name: acrdigitalgarage01.azurecr.io/kt-event-marketing/content-service
    newTag: latest
  - name: acrdigitalgarage01.azurecr.io/kt-event-marketing/distribution-service
    newTag: latest
  - name: acrdigitalgarage01.azurecr.io/kt-event-marketing/participation-service
    newTag: latest
  - name: acrdigitalgarage01.azurecr.io/kt-event-marketing/analytics-service
    newTag: latest
