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


resources:
- elastic-agent-kubernetes.yaml

patches:
- path: patches/elastic-agent-standalone-entrypoint.yaml
  target:
    group: apps
    version: v1
    kind: DaemonSet
    name: elastic-agent-standalone

- path: patches/elastic-agent-managed-entrypoint.yaml
  target:
    group: apps
    version: v1
    kind: DaemonSet
    name: elastic-agent

- path: patches/fleet-env-vars.yaml
  target:
    group: apps
    version: v1
    kind: DaemonSet
    name: elastic-agent

- path: patches/elasticsearch-env-vars.yaml
  target:
    group: apps
    version: v1
    kind: DaemonSet
    name: elastic-agent-standalone

configMapGenerator:
  - name: fleet-es-configmap
    namespace: kube-system
    envs:
      - .env