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

# Include core model registry components (for profile namespace)
resources:
  # Database and core model registry components
  - ../db
  # Istio networking components
  - ../../options/istio

# Patches for deployments
patches:
  - path: patch-db-deployment.yaml
    target:
      group: apps
      version: v1
      kind: Deployment
      name: model-registry-db
  - path: patch-model-registry-deployment.yaml
    target:
      group: apps
      version: v1
      kind: Deployment
      name: model-registry-deployment

# Common labels for all resources
commonLabels:
  app.kubernetes.io/name: model-registry
  app.kubernetes.io/component: model-registry-core
  app.kubernetes.io/part-of: kubeflow