Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ spec:
- key
type: object
x-kubernetes-map-type: atomic
x-kubernetes-validations:
- rule: has(self.name) && self.name.matches('^[a-z0-9]([-a-z0-9.]*[a-z0-9])?$')
&& size(self.name) <= 253
externalLabels:
additionalProperties:
type: string
Expand All @@ -86,6 +89,9 @@ spec:
data before being written to Google Cloud Monitoring or any other additional exports
specified in the OperatorConfig. The precedence behavior matches that of Prometheus.
type: object
x-kubernetes-validations:
- message: Invalid label key
rule: self.all(key, key.matches('^[a-zA-Z_][a-zA-Z0-9_]*$'))
filter:
description: Filter limits which metric data is sent to Cloud Monitoring
(it doesn't apply to additional exports).
Expand Down Expand Up @@ -157,9 +163,12 @@ spec:
description: The URL of the endpoint that supports Prometheus Remote
Write to export samples to.
type: string
x-kubernetes-validations:
- rule: self == '' || isURL(self)
Comment thread
bernot-dev marked this conversation as resolved.
required:
- url
type: object
maxItems: 10
type: array
features:
description: Features holds configuration for optional managed-collection
Expand Down Expand Up @@ -227,6 +236,9 @@ spec:
- key
type: object
x-kubernetes-map-type: atomic
x-kubernetes-validations:
- rule: has(self.name) && self.name.matches('^[a-z0-9]([-a-z0-9.]*[a-z0-9])?$')
&& size(self.name) <= 253
externalURL:
description: |-
ExternalURL is the URL under which Alertmanager is externally reachable (for example, if
Expand All @@ -237,6 +249,8 @@ spec:

If no URL is provided, Alertmanager will point to the Google Cloud Metric Explorer page.
type: string
x-kubernetes-validations:
- rule: self == '' || isURL(self)
Comment thread
bernot-dev marked this conversation as resolved.
type: object
metadata:
type: object
Expand Down Expand Up @@ -288,6 +302,9 @@ spec:
- key
type: object
x-kubernetes-map-type: atomic
x-kubernetes-validations:
- rule: has(self.name) && self.name.matches('^[a-z0-9]([-a-z0-9.]*[a-z0-9])?$')
&& size(self.name) <= 253
type:
description: |-
Set the authentication type. Defaults to Bearer, Basic will cause an
Expand All @@ -296,9 +313,13 @@ spec:
type: object
name:
description: Name of Endpoints object in Namespace.
maxLength: 63
pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
type: string
namespace:
description: Namespace of Endpoints object.
maxLength: 63
pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
type: string
pathPrefix:
description: Prefix for the HTTP path alerts are pushed
Expand All @@ -312,6 +333,9 @@ spec:
x-kubernetes-int-or-string: true
scheme:
description: Scheme to use when firing alerts.
enum:
- http
- https
type: string
timeout:
description: Timeout is a per-target Alertmanager timeout
Expand Down Expand Up @@ -373,6 +397,9 @@ spec:
- key
type: object
x-kubernetes-map-type: atomic
x-kubernetes-validations:
- rule: has(self.name) && self.name.matches('^[a-z0-9]([-a-z0-9.]*[a-z0-9])?$')
&& size(self.name) <= 253
type: object
cert:
description: Struct containing the client cert file
Expand Down Expand Up @@ -427,6 +454,9 @@ spec:
- key
type: object
x-kubernetes-map-type: atomic
x-kubernetes-validations:
- rule: has(self.name) && self.name.matches('^[a-z0-9]([-a-z0-9.]*[a-z0-9])?$')
&& size(self.name) <= 253
type: object
insecureSkipVerify:
description: Disable target certificate validation.
Expand Down Expand Up @@ -456,6 +486,9 @@ spec:
- key
type: object
x-kubernetes-map-type: atomic
x-kubernetes-validations:
- rule: has(self.name) && self.name.matches('^[a-z0-9]([-a-z0-9.]*[a-z0-9])?$')
&& size(self.name) <= 253
maxVersion:
description: |-
Maximum TLS version. Accepted values: TLS10 (TLS 1.0), TLS11 (TLS 1.1), TLS12 (TLS 1.2), TLS13 (TLS 1.3).
Expand All @@ -477,6 +510,7 @@ spec:
- namespace
- port
type: object
maxItems: 3
type: array
type: object
credentials:
Expand Down Expand Up @@ -508,6 +542,9 @@ spec:
- key
type: object
x-kubernetes-map-type: atomic
x-kubernetes-validations:
- rule: has(self.name) && self.name.matches('^[a-z0-9]([-a-z0-9.]*[a-z0-9])?$')
&& size(self.name) <= 253
externalLabels:
additionalProperties:
type: string
Expand All @@ -516,17 +553,26 @@ spec:
results and alerts produced by rules. The precedence behavior matches that
of Prometheus.
type: object
x-kubernetes-validations:
- message: Invalid label key
rule: self.all(key, key.matches('^[a-zA-Z_][a-zA-Z0-9_]*$'))
generatorUrl:
description: |-
The base URL used for the generator URL in the alert notification payload.
Should point to an instance of a query frontend that gives access to queryProjectID.
type: string
x-kubernetes-validations:
- rule: self == '' || isURL(self)
Comment thread
bernot-dev marked this conversation as resolved.
queryProjectID:
description: |-
QueryProjectID is the GCP project ID to evaluate rules against.
If left blank, the rule-evaluator will try attempt to infer the Project ID
from the environment.
type: string
x-kubernetes-validations:
- message: Invalid GCP project ID
rule: self == '' || (self.matches('^[a-z][a-z0-9-]*[a-z0-9]$') &&
size(self) >= 6 && size(self) <= 30)
type: object
scaling:
description: Scaling contains configuration options for scaling GMP.
Expand Down
Loading
Loading