apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: kubeflow
resources:
- ../../../../metadata/v3
- metadata-db-serviceaccount.yaml

patchesStrategicMerge:
- metadata-db-deployment.yaml

patches:
- target:
    kind: Deployment
    version: v1
    group: apps
    name: metadata-db
  path: patchdb.yaml


configMapGenerator:
- name: kubeflow-config
  envs:
  - ../../config/params.env
# We need to define vars at the top level otherwise we will get
# conflicts.
vars:
- fieldref:
    fieldPath: data.clusterDomain
  name: clusterDomain
  objref:
    apiVersion: v1
    kind: ConfigMap
    name: kubeflow-config
- fieldref:
    fieldPath: metadata.namespace
  name: namespace
  objref:
    apiVersion: v1
    kind: ConfigMap
    name: kubeflow-config

