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

metadata:
  name: agent-monitor-dev

namespace: agent-monitor

resources:
  - ../../base

images:
  - name: ${IMAGE_REGISTRY}/agent-monitor
    newName: agent-monitor
    newTag: dev

configMapGenerator:
  - name: agent-monitor-config
    behavior: merge
    literals:
      - NODE_ENV=development
      - LOG_LEVEL=debug

patches:
  # Disable HPA in dev (single replica, no autoscaling needed)
  - target:
      kind: HorizontalPodAutoscaler
      name: agent-monitor
    patch: |
      $patch: delete
      apiVersion: autoscaling/v2
      kind: HorizontalPodAutoscaler
      metadata:
        name: agent-monitor
  # Deployment overrides for dev
  - path: patches/deployment-patch.yaml
