« lib/IO/K8s/PrometheusOperator/V1/AlertingSpec.pm
↑ Summary
lib/IO/K8s/PrometheusOperator/V1/AlertmanagerConfigMatcherStrategy.pm »
| 1 | package IO::K8s::PrometheusOperator::V1::Alertmanager; | ||
| 2 | # ABSTRACT: The `Alertmanager` custom resource definition (CRD) defines a desired [Alertmanager](https://prometheus.io/docs/alerting) setup to run in a Kubernetes cluster. | ||
| 3 | 5 | our $VERSION = '1.112'; | |
| 4 | use IO::K8s::APIObject | ||
| 5 | 5 | ▶ | api_version => 'monitoring.coreos.com/v1', |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | resource_plural => 'alertmanagers', | ||
| 7 | subresources => { | ||
| 8 | scale => { | ||
| 9 | labelSelectorPath => '.status.selector', | ||
| 10 | specReplicasPath => '.spec.replicas', | ||
| 11 | statusReplicasPath => '.status.replicas' | ||
| 12 | }, | ||
| 13 | status => {} | ||
| 14 | 5 | }; | |
| 15 | 5 | with 'IO::K8s::Role::Namespaced'; | |
| 16 | |||
| 17 | 5 | k8s spec => '+IO::K8s::PrometheusOperator::V1::AlertmanagerSpec', { required => 'schema' }; | |
| 18 | 5 | k8s status => '+IO::K8s::PrometheusOperator::V1::AlertmanagerStatus'; | |
| 19 | |||
| 20 | |||
| 21 | |||
| 22 | 5 | 1; | |
| 23 | |||
| 24 | __END__ | ||