cw-infra-apps/grafana/charts/feature-cluster-metrics/tests/alternative-discovery_test.yaml
2025-05-28 10:01:42 +03:00

33 lines
905 B
YAML

# yamllint disable rule:document-start rule:line-length rule:trailing-spaces
suite: Alternative discovery settings
templates:
- configmap.yaml
tests:
- it: should be able to look for kube-state-metrics via pods, rather than endpoints
set:
deployAsConfigMap: true
kube-state-metrics:
discoveryType: pod
asserts:
- isKind:
of: ConfigMap
- matchSnapshot:
path: data["module.alloy"]
- it: should be able to find the Kubelet and cAdvisor via the API server proxy
set:
deployAsConfigMap: true
kubelet:
nodeAddressFormat: proxy
kubeletResource:
nodeAddressFormat: proxy
kubeletProbes:
enabled: true
nodeAddressFormat: proxy
cadvisor:
nodeAddressFormat: proxy
asserts:
- isKind:
of: ConfigMap
- matchSnapshot:
path: data["module.alloy"]