# Adds namespace to all resources.
namespace: costmanagement-metrics-operator

# Value of this field is prepended to the
# names of all resources, e.g. a deployment named
# "wordpress" becomes "alices-wordpress".
# Note that it should also match with the prefix (text before '-') of the namespace
# field above.
namePrefix: costmanagement-metrics-

# Labels to add to all resources and selectors.
# commonLabels:
#  application: costmanagement-metrics-operator

apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../crd
- ../serviceaccounts
- ../rbac
- ../manager

# [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix including the one in
# crd/kustomization.yaml
# - ../webhook
# [PROMETHEUS] To enable prometheus monitor, uncomment all sections with 'PROMETHEUS'.
#- ../prometheus

# Protect the /metrics endpoint by putting it behind auth.
# If you want your controller-manager to expose the /metrics
# endpoint w/o any authn/z, please comment the following line.
# patchesStrategicMerge:
# - manager_auth_proxy_patch.yaml

# [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix including the one in
# crd/kustomization.yaml
# - manager_webhook_patch.yaml

# [CA injection] To enable ca-injection, uncomment all sections with 'CA injection'.
# Uncomment 'CA injection' sections in crd/kustomization.yaml to enable the CA injection in the admission webhooks.
# 'CA injection' needs to be enabled to use ca injection
#- webhookcainjection_patch.yaml
