« lib/IO/K8s/PrometheusOperator/V1/ProberSpec.pm
↑ Summary
lib/IO/K8s/PrometheusOperator/V1/PrometheusRule.pm »
| 1 | package IO::K8s::PrometheusOperator::V1::Prometheus; | ||
| 2 | # ABSTRACT: The `Prometheus` custom resource definition (CRD) defines a desired [Prometheus](https://prometheus.io/docs/prometheus) 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 => 'prometheuses', | ||
| 7 | subresources => { | ||
| 8 | scale => { | ||
| 9 | labelSelectorPath => '.status.selector', | ||
| 10 | specReplicasPath => '.spec.shards', | ||
| 11 | statusReplicasPath => '.status.shards' | ||
| 12 | }, | ||
| 13 | status => {} | ||
| 14 | 5 | }; | |
| 15 | 5 | with 'IO::K8s::Role::Namespaced'; | |
| 16 | |||
| 17 | 5 | k8s spec => '+IO::K8s::PrometheusOperator::V1::PrometheusSpec', { required => 'schema' }; | |
| 18 | 5 | k8s status => '+IO::K8s::PrometheusOperator::V1::PrometheusStatus'; | |
| 19 | |||
| 20 | |||
| 21 | |||
| 22 | 5 | 1; | |
| 23 | |||
| 24 | __END__ | ||