Skip to content
Snippets Groups Projects
0alertmanagerConfigCustomResourceDefinition.yaml 224 KiB
Newer Older
                                          key:
                                            description: The key to select.
                                            type: string
                                          name:
                                            description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?'
                                            description: Specify whether the ConfigMap or its key must be defined
                                            type: boolean
                                        required:
                                        - key
                                        type: object
                                        x-kubernetes-map-type: atomic
                                        description: Secret containing data to use for the targets.
                                            description: The key of the secret to select from.  Must be a valid secret key.
                                            description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?'
                                            description: Specify whether the Secret or its key must be defined
                                            type: boolean
                                        required:
                                        - key
                                        type: object
                                        x-kubernetes-map-type: atomic
                                    type: object
                                  insecureSkipVerify:
                                    description: Disable target certificate validation.
                                    type: boolean
                                  keySecret:
                                    description: Secret containing the client key file for the targets.
                                        description: The key of the secret to select from.  Must be a valid secret key.
                                        description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?'
                                        description: Specify whether the Secret or its key must be defined
                                        type: boolean
                                    required:
                                    - key
                                    type: object
                                    x-kubernetes-map-type: atomic
                                    description: Used to verify the hostname for the targets.
                                    type: string
                                type: object
                            type: object
                          message:
                            description: The message content of the SNS notification.
                            type: string
                          phoneNumber:
                            description: Phone number if message is delivered via SMS in E.164 format. If you don't specify this value, you must specify a value for the TopicARN or TargetARN.
                            type: string
                          sendResolved:
                            description: Whether or not to notify about resolved alerts.
                            type: boolean
                          sigv4:
                            description: Configures AWS's Signature Verification 4 signing process to sign requests.
                                description: AccessKey is the AWS API key. If not specified, the environment variable `AWS_ACCESS_KEY_ID` is used.
                                    description: The key of the secret to select from.  Must be a valid secret key.
                                    description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?'
                                    description: Specify whether the Secret or its key must be defined
                                    type: boolean
                                required:
                                - key
                                type: object
                                x-kubernetes-map-type: atomic
                                description: Profile is the named AWS profile used to authenticate.
                                description: Region is the AWS region. If blank, the region from the default credentials chain used.
                                description: RoleArn is the named AWS profile used to authenticate.
                                description: SecretKey is the AWS API secret. If not specified, the environment variable `AWS_SECRET_ACCESS_KEY` is used.
                                    description: The key of the secret to select from.  Must be a valid secret key.
                                    description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?'
                                    description: Specify whether the Secret or its key must be defined
                                    type: boolean
                                required:
                                - key
                                type: object
                                x-kubernetes-map-type: atomic
                            description: Subject line when the message is delivered to email endpoints.
                            description: The  mobile platform endpoint ARN if message is delivered via mobile notifications. If you don't specify this value, you must specify a value for the topic_arn or PhoneNumber.
                            description: SNS topic ARN, i.e. arn:aws:sns:us-east-2:698519295917:My-Topic If you don't specify this value, you must specify a value for the PhoneNumber or TargetARN.
                            type: string
                        type: object
                      type: array
                    telegramConfigs:
                      description: List of Telegram configurations.
                      items:
                        description: TelegramConfig configures notifications via Telegram. See https://prometheus.io/docs/alerting/latest/configuration/#telegram_config
                            description: The Telegram API URL i.e. https://api.telegram.org. If not specified, default API URL will be used.
                            description: Telegram bot token The secret needs to be in the same namespace as the AlertmanagerConfig object and accessible by the Prometheus Operator.
                                description: The key of the secret to select from.  Must be a valid secret key.
                                description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?'
                                description: Specify whether the Secret or its key must be defined
                                type: boolean
                            required:
                            - key
                            type: object
                          chatID:
                            description: The Telegram chat ID.
                            format: int64
                            type: integer
                          disableNotifications:
                            description: Disable telegram notifications
                            type: boolean
                          httpConfig:
                            description: HTTP client configuration.
                            properties:
                              authorization:
                                description: Authorization header configuration for the client. This is mutually exclusive with BasicAuth and is only available starting from Alertmanager v0.22+.
                                    description: Selects a key of a Secret in the namespace that contains the credentials for authentication.
                                        description: The key of the secret to select from.  Must be a valid secret key.
                                        description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?'
                                        description: Specify whether the Secret or its key must be defined
                                        type: boolean
                                    required:
                                    - key
                                    type: object
                                    x-kubernetes-map-type: atomic
                                    description: "Defines the authentication type. The value is case-insensitive. \n \"Basic\" is not a supported value. \n Default: \"Bearer\""
                                    type: string
                                type: object
                              basicAuth:
                                description: BasicAuth for the client. This is mutually exclusive with Authorization. If both are defined, BasicAuth takes precedence.
                                    description: The secret in the service monitor namespace that contains the password for authentication.
                                        description: The key of the secret to select from.  Must be a valid secret key.
                                        description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?'
                                        description: Specify whether the Secret or its key must be defined
                                        type: boolean
                                    required:
                                    - key
                                    type: object
                                    x-kubernetes-map-type: atomic
                                    description: The secret in the service monitor namespace that contains the username for authentication.
                                        description: The key of the secret to select from.  Must be a valid secret key.
                                        description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?'
                                        description: Specify whether the Secret or its key must be defined
                                        type: boolean
                                    required:
                                    - key
                                    type: object
                                    x-kubernetes-map-type: atomic
                                type: object
                              bearerTokenSecret:
                                description: The secret's key that contains the bearer token to be used by the client for authentication. The secret needs to be in the same namespace as the AlertmanagerConfig object and accessible by the Prometheus Operator.
                                    description: The key of the secret to select from.  Must be a valid secret key.
                                    description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?'
                                    description: Specify whether the Secret or its key must be defined
                                    type: boolean
                                required:
                                - key
                                type: object
                              followRedirects:
                                description: FollowRedirects specifies whether the client should follow HTTP 3xx redirects.
                                description: OAuth2 client credentials used to fetch a token for the targets.
                                    description: The secret or configmap containing the OAuth2 client id
                                        description: ConfigMap containing data to use for the targets.
                                        properties:
                                          key:
                                            description: The key to select.
                                            type: string
                                          name:
                                            description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?'
                                            description: Specify whether the ConfigMap or its key must be defined
                                            type: boolean
                                        required:
                                        - key
                                        type: object
                                        x-kubernetes-map-type: atomic
                                        description: Secret containing data to use for the targets.
                                            description: The key of the secret to select from.  Must be a valid secret key.
                                            description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?'
                                            description: Specify whether the Secret or its key must be defined
                                            type: boolean
                                        required:
                                        - key
                                        type: object
                                        x-kubernetes-map-type: atomic
                                    type: object
                                  clientSecret:
                                    description: The secret containing the OAuth2 client secret
                                        description: The key of the secret to select from.  Must be a valid secret key.
                                        description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?'
                                        description: Specify whether the Secret or its key must be defined
                                        type: boolean
                                    required:
                                    - key
                                    type: object
                                    x-kubernetes-map-type: atomic
                                  endpointParams:
                                    additionalProperties:
                                      type: string
                                    description: Parameters to append to the token URL
                                    description: OAuth2 scopes used for the token request
                                    items:
                                      type: string
                                    type: array
                                  tokenUrl:
                                    description: The URL to fetch the token from
                                    minLength: 1
                                    type: string
                                required:
                                - clientId
                                - clientSecret
                                - tokenUrl
                                type: object
                              proxyURL:
                                description: Optional proxy URL.
                                type: string
                              tlsConfig:
                                description: TLS configuration for the client.
                                properties:
                                  ca:
                                    description: Certificate authority used when verifying server certificates.
                                        description: ConfigMap containing data to use for the targets.
                                        properties:
                                          key:
                                            description: The key to select.
                                            type: string
                                          name:
                                            description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?'
                                            description: Specify whether the ConfigMap or its key must be defined
                                            type: boolean
                                        required:
                                        - key
                                        type: object
                                        x-kubernetes-map-type: atomic
                                        description: Secret containing data to use for the targets.
                                            description: The key of the secret to select from.  Must be a valid secret key.
                                            description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?'
                                            description: Specify whether the Secret or its key must be defined
                                            type: boolean
                                        required:
                                        - key
                                        type: object
                                        x-kubernetes-map-type: atomic
                                    description: Client certificate to present when doing client-authentication.
                                        description: ConfigMap containing data to use for the targets.
                                        properties:
                                          key:
                                            description: The key to select.
                                            type: string
                                          name:
                                            description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?'
                                            description: Specify whether the ConfigMap or its key must be defined
                                            type: boolean
                                        required:
                                        - key
                                        type: object
                                        x-kubernetes-map-type: atomic
                                        description: Secret containing data to use for the targets.
                                            description: The key of the secret to select from.  Must be a valid secret key.
                                            description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?'
                                            description: Specify whether the Secret or its key must be defined
                                            type: boolean
                                        required:
                                        - key
                                        type: object
                                        x-kubernetes-map-type: atomic
                                    type: object
                                  insecureSkipVerify:
                                    description: Disable target certificate validation.
                                    type: boolean
                                  keySecret:
                                    description: Secret containing the client key file for the targets.
                                        description: The key of the secret to select from.  Must be a valid secret key.
                                        description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?'
                                        description: Specify whether the Secret or its key must be defined
                                        type: boolean
                                    required:
                                    - key
                                    type: object
                                    x-kubernetes-map-type: atomic
                                    description: Used to verify the hostname for the targets.
                                    type: string
                                type: object
                            type: object
                          message:
                            description: Message template
                            type: string
                          parseMode:
                            description: Parse mode for telegram message
                            enum:
                            - MarkdownV2
                            - Markdown
                            - HTML
                            type: string
                          sendResolved:
                            description: Whether to notify about resolved alerts.
                            type: boolean
                        type: object
                      type: array
Lili Cosic's avatar
Lili Cosic committed
                    victoropsConfigs:
                      description: List of VictorOps configurations.
                      items:
                        description: VictorOpsConfig configures notifications via VictorOps. See https://prometheus.io/docs/alerting/latest/configuration/#victorops_config
Lili Cosic's avatar
Lili Cosic committed
                        properties:
                          apiKey:
                            description: The secret's key that contains the API key to use when talking to the VictorOps API. The secret needs to be in the same namespace as the AlertmanagerConfig object and accessible by the Prometheus Operator.
Lili Cosic's avatar
Lili Cosic committed
                            properties:
                              key:
                                description: The key of the secret to select from.  Must be a valid secret key.
Lili Cosic's avatar
Lili Cosic committed
                                type: string
                              name:
                                description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?'
Lili Cosic's avatar
Lili Cosic committed
                                type: string
                              optional:
                                description: Specify whether the Secret or its key must be defined
Lili Cosic's avatar
Lili Cosic committed
                                type: boolean
                            required:
                            - key
                            type: object
                          apiUrl:
                            description: The VictorOps API URL.
                            type: string
                          customFields:
                            description: Additional custom fields for notification.
                            items:
                              description: KeyValue defines a (key, value) tuple.
                              properties:
                                key:
                                  description: Key of the tuple.
paulfantom's avatar
paulfantom committed
                                  minLength: 1
Lili Cosic's avatar
Lili Cosic committed
                                  type: string
                                value:
                                  description: Value of the tuple.
                                  type: string
                              required:
                              - key
                              - value
                              type: object
                            type: array
                          entityDisplayName:
                            description: Contains summary of the alerted problem.
                            type: string
                          httpConfig:
                            description: The HTTP client's configuration.
                            properties:
                              authorization:
                                description: Authorization header configuration for the client. This is mutually exclusive with BasicAuth and is only available starting from Alertmanager v0.22+.
                                properties:
                                  credentials:
                                    description: Selects a key of a Secret in the namespace that contains the credentials for authentication.
                                    properties:
                                      key:
                                        description: The key of the secret to select from.  Must be a valid secret key.
                                        type: string
                                      name:
                                        description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?'
                                        type: string
                                      optional:
                                        description: Specify whether the Secret or its key must be defined
                                        type: boolean
                                    required:
                                    - key
                                    type: object
                                    x-kubernetes-map-type: atomic
                                    description: "Defines the authentication type. The value is case-insensitive. \n \"Basic\" is not a supported value. \n Default: \"Bearer\""
                                    type: string
                                type: object
Lili Cosic's avatar
Lili Cosic committed
                              basicAuth:
                                description: BasicAuth for the client. This is mutually exclusive with Authorization. If both are defined, BasicAuth takes precedence.
Lili Cosic's avatar
Lili Cosic committed
                                properties:
                                  password:
                                    description: The secret in the service monitor namespace that contains the password for authentication.
Lili Cosic's avatar
Lili Cosic committed
                                    properties:
                                      key:
                                        description: The key of the secret to select from.  Must be a valid secret key.
Lili Cosic's avatar
Lili Cosic committed
                                        type: string
                                      name:
                                        description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?'
Lili Cosic's avatar
Lili Cosic committed
                                        type: string
                                      optional:
                                        description: Specify whether the Secret or its key must be defined
Lili Cosic's avatar
Lili Cosic committed
                                        type: boolean
                                    required:
                                    - key
                                    type: object
                                    x-kubernetes-map-type: atomic
Lili Cosic's avatar
Lili Cosic committed
                                  username:
                                    description: The secret in the service monitor namespace that contains the username for authentication.
Lili Cosic's avatar
Lili Cosic committed
                                    properties:
                                      key:
                                        description: The key of the secret to select from.  Must be a valid secret key.
Lili Cosic's avatar
Lili Cosic committed
                                        type: string
                                      name:
                                        description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?'
Lili Cosic's avatar
Lili Cosic committed
                                        type: string
                                      optional:
                                        description: Specify whether the Secret or its key must be defined
Lili Cosic's avatar
Lili Cosic committed
                                        type: boolean
                                    required:
                                    - key
                                    type: object
                                    x-kubernetes-map-type: atomic
Lili Cosic's avatar
Lili Cosic committed
                                type: object
                              bearerTokenSecret:
                                description: The secret's key that contains the bearer token to be used by the client for authentication. The secret needs to be in the same namespace as the AlertmanagerConfig object and accessible by the Prometheus Operator.
Lili Cosic's avatar
Lili Cosic committed
                                properties:
                                  key:
                                    description: The key of the secret to select from.  Must be a valid secret key.
Lili Cosic's avatar
Lili Cosic committed
                                    type: string
                                  name:
                                    description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?'
Lili Cosic's avatar
Lili Cosic committed
                                    type: string
                                  optional:
                                    description: Specify whether the Secret or its key must be defined
Lili Cosic's avatar
Lili Cosic committed
                                    type: boolean
                                required:
                                - key
                                type: object
                                description: FollowRedirects specifies whether the client should follow HTTP 3xx redirects.
                                description: OAuth2 client credentials used to fetch a token for the targets.
                                    description: The secret or configmap containing the OAuth2 client id
                                        description: ConfigMap containing data to use for the targets.
                                        properties:
                                          key:
                                            description: The key to select.
                                            type: string
                                          name:
                                            description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?'
                                            description: Specify whether the ConfigMap or its key must be defined
                                            type: boolean
                                        required:
                                        - key
                                        type: object
                                        x-kubernetes-map-type: atomic
                                        description: Secret containing data to use for the targets.
                                            description: The key of the secret to select from.  Must be a valid secret key.
                                            description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?'
                                            description: Specify whether the Secret or its key must be defined
                                            type: boolean
                                        required:
                                        - key
                                        type: object
                                        x-kubernetes-map-type: atomic
                                    type: object
                                  clientSecret:
                                    description: The secret containing the OAuth2 client secret
                                        description: The key of the secret to select from.  Must be a valid secret key.
                                        description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?'
                                        description: Specify whether the Secret or its key must be defined
                                        type: boolean
                                    required:
                                    - key
                                    type: object
                                    x-kubernetes-map-type: atomic
                                  endpointParams:
                                    additionalProperties:
                                      type: string
                                    description: Parameters to append to the token URL
                                    description: OAuth2 scopes used for the token request
                                    items:
                                      type: string
                                    type: array
                                  tokenUrl:
                                    description: The URL to fetch the token from
                                    minLength: 1
                                    type: string
                                required:
                                - clientId
                                - clientSecret
                                - tokenUrl
                                type: object
Lili Cosic's avatar
Lili Cosic committed
                              proxyURL:
                                description: Optional proxy URL.
                                type: string
                              tlsConfig:
                                description: TLS configuration for the client.
                                properties:
                                  ca:
                                    description: Certificate authority used when verifying server certificates.
Lili Cosic's avatar
Lili Cosic committed
                                    properties:
                                      configMap:
                                        description: ConfigMap containing data to use for the targets.
Lili Cosic's avatar
Lili Cosic committed
                                        properties:
                                          key:
                                            description: The key to select.
                                            type: string
                                          name:
                                            description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?'
Lili Cosic's avatar
Lili Cosic committed
                                            type: string
                                          optional:
                                            description: Specify whether the ConfigMap or its key must be defined
Lili Cosic's avatar
Lili Cosic committed
                                            type: boolean
                                        required:
                                        - key
                                        type: object
                                        x-kubernetes-map-type: atomic
Lili Cosic's avatar
Lili Cosic committed
                                      secret:
                                        description: Secret containing data to use for the targets.
Lili Cosic's avatar
Lili Cosic committed
                                        properties:
                                          key:
                                            description: The key of the secret to select from.  Must be a valid secret key.
Lili Cosic's avatar
Lili Cosic committed
                                            type: string
                                          name:
                                            description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?'
Lili Cosic's avatar
Lili Cosic committed
                                            type: string
                                          optional:
                                            description: Specify whether the Secret or its key must be defined
Lili Cosic's avatar
Lili Cosic committed
                                            type: boolean
                                        required:
                                        - key
                                        type: object
                                        x-kubernetes-map-type: atomic
Lili Cosic's avatar
Lili Cosic committed
                                    type: object
                                  cert:
                                    description: Client certificate to present when doing client-authentication.
Lili Cosic's avatar
Lili Cosic committed
                                    properties:
                                      configMap:
                                        description: ConfigMap containing data to use for the targets.
Lili Cosic's avatar
Lili Cosic committed
                                        properties:
                                          key:
                                            description: The key to select.
                                            type: string
                                          name:
                                            description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?'
Lili Cosic's avatar
Lili Cosic committed
                                            type: string
                                          optional:
                                            description: Specify whether the ConfigMap or its key must be defined
Lili Cosic's avatar
Lili Cosic committed
                                            type: boolean
                                        required:
                                        - key
                                        type: object
                                        x-kubernetes-map-type: atomic
Lili Cosic's avatar
Lili Cosic committed
                                      secret:
                                        description: Secret containing data to use for the targets.
Lili Cosic's avatar
Lili Cosic committed
                                        properties:
                                          key:
                                            description: The key of the secret to select from.  Must be a valid secret key.
Lili Cosic's avatar
Lili Cosic committed
                                            type: string
                                          name:
                                            description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?'
Lili Cosic's avatar
Lili Cosic committed
                                            type: string
                                          optional:
                                            description: Specify whether the Secret or its key must be defined
Lili Cosic's avatar
Lili Cosic committed
                                            type: boolean
                                        required:
                                        - key
                                        type: object
                                        x-kubernetes-map-type: atomic
Lili Cosic's avatar
Lili Cosic committed
                                    type: object
                                  insecureSkipVerify:
                                    description: Disable target certificate validation.
                                    type: boolean
                                  keySecret:
                                    description: Secret containing the client key file for the targets.
Lili Cosic's avatar
Lili Cosic committed
                                    properties:
                                      key:
                                        description: The key of the secret to select from.  Must be a valid secret key.
Lili Cosic's avatar
Lili Cosic committed
                                        type: string
                                      name:
                                        description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?'
Lili Cosic's avatar
Lili Cosic committed
                                        type: string
                                      optional:
                                        description: Specify whether the Secret or its key must be defined
Lili Cosic's avatar
Lili Cosic committed
                                        type: boolean
                                    required:
                                    - key
                                    type: object
                                    x-kubernetes-map-type: atomic
Lili Cosic's avatar
Lili Cosic committed
                                  serverName:
                                    description: Used to verify the hostname for the targets.
Lili Cosic's avatar
Lili Cosic committed
                                    type: string
                                type: object
                            type: object
                          messageType:
                            description: Describes the behavior of the alert (CRITICAL, WARNING, INFO).
Lili Cosic's avatar
Lili Cosic committed
                            type: string
                          monitoringTool:
                            description: The monitoring tool the state message is from.
Lili Cosic's avatar
Lili Cosic committed
                            type: string
                          routingKey:
                            description: A key used to map the alert to a team.
                            type: string
                          sendResolved:
                            description: Whether or not to notify about resolved alerts.
                            type: boolean
                          stateMessage:
                            description: Contains long explanation of the alerted problem.
Lili Cosic's avatar
Lili Cosic committed
                            type: string
                        type: object
                      type: array
                    webhookConfigs:
                      description: List of webhook configurations.
                      items:
                        description: WebhookConfig configures notifications via a generic receiver supporting the webhook payload. See https://prometheus.io/docs/alerting/latest/configuration/#webhook_config
Lili Cosic's avatar
Lili Cosic committed
                        properties:
                          httpConfig:
                            description: HTTP client configuration.
                            properties:
                              authorization:
                                description: Authorization header configuration for the client. This is mutually exclusive with BasicAuth and is only available starting from Alertmanager v0.22+.
                                properties:
                                  credentials:
                                    description: Selects a key of a Secret in the namespace that contains the credentials for authentication.
                                    properties:
                                      key:
                                        description: The key of the secret to select from.  Must be a valid secret key.
                                        type: string
                                      name:
                                        description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?'
                                        type: string
                                      optional:
                                        description: Specify whether the Secret or its key must be defined
                                        type: boolean
                                    required:
                                    - key
                                    type: object
                                    x-kubernetes-map-type: atomic
                                    description: "Defines the authentication type. The value is case-insensitive. \n \"Basic\" is not a supported value. \n Default: \"Bearer\""
                                    type: string
                                type: object
Lili Cosic's avatar
Lili Cosic committed
                              basicAuth:
                                description: BasicAuth for the client. This is mutually exclusive with Authorization. If both are defined, BasicAuth takes precedence.
Lili Cosic's avatar
Lili Cosic committed
                                properties:
                                  password:
                                    description: The secret in the service monitor namespace that contains the password for authentication.
Lili Cosic's avatar
Lili Cosic committed
                                    properties:
                                      key:
                                        description: The key of the secret to select from.  Must be a valid secret key.
Lili Cosic's avatar
Lili Cosic committed
                                        type: string
                                      name:
                                        description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?'
Lili Cosic's avatar
Lili Cosic committed
                                        type: string
                                      optional:
                                        description: Specify whether the Secret or its key must be defined
Lili Cosic's avatar
Lili Cosic committed
                                        type: boolean
                                    required:
                                    - key
                                    type: object
                                    x-kubernetes-map-type: atomic
Lili Cosic's avatar
Lili Cosic committed
                                  username:
                                    description: The secret in the service monitor namespace that contains the username for authentication.
Lili Cosic's avatar
Lili Cosic committed
                                    properties:
                                      key:
                                        description: The key of the secret to select from.  Must be a valid secret key.
Lili Cosic's avatar
Lili Cosic committed
                                        type: string
                                      name:
                                        description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?'
Lili Cosic's avatar
Lili Cosic committed
                                        type: string
                                      optional:
                                        description: Specify whether the Secret or its key must be defined
Lili Cosic's avatar
Lili Cosic committed
                                        type: boolean
                                    required:
                                    - key
                                    type: object
                                    x-kubernetes-map-type: atomic
Lili Cosic's avatar
Lili Cosic committed
                                type: object
                              bearerTokenSecret:
                                description: The secret's key that contains the bearer token to be used by the client for authentication. The secret needs to be in the same namespace as the AlertmanagerConfig object and accessible by the Prometheus Operator.
Lili Cosic's avatar
Lili Cosic committed
                                properties:
                                  key:
                                    description: The key of the secret to select from.  Must be a valid secret key.
Lili Cosic's avatar
Lili Cosic committed
                                    type: string
                                  name:
                                    description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?'
Lili Cosic's avatar
Lili Cosic committed
                                    type: string
                                  optional:
                                    description: Specify whether the Secret or its key must be defined
Lili Cosic's avatar
Lili Cosic committed
                                    type: boolean
                                required:
                                - key
                                type: object
                                description: FollowRedirects specifies whether the client should follow HTTP 3xx redirects.
                                description: OAuth2 client credentials used to fetch a token for the targets.
                                    description: The secret or configmap containing the OAuth2 client id
                                        description: ConfigMap containing data to use for the targets.
                                        properties:
                                          key:
                                            description: The key to select.
                                            type: string
                                          name:
                                            description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?'
                                            description: Specify whether the ConfigMap or its key must be defined
                                            type: boolean
                                        required:
                                        - key
                                        type: object
                                        x-kubernetes-map-type: atomic
                                        description: Secret containing data to use for the targets.
                                            description: The key of the secret to select from.  Must be a valid secret key.
                                            description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?'
                                            description: Specify whether the Secret or its key must be defined
                                            type: boolean
                                        required:
                                        - key
                                        type: object
                                        x-kubernetes-map-type: atomic
                                    type: object
                                  clientSecret:
                                    description: The secret containing the OAuth2 client secret
                                        description: The key of the secret to select from.  Must be a valid secret key.
                                        description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?'
                                        description: Specify whether the Secret or its key must be defined
                                        type: boolean
                                    required:
                                    - key
                                    type: object
                                    x-kubernetes-map-type: atomic
                                  endpointParams:
                                    additionalProperties:
                                      type: string
                                    description: Parameters to append to the token URL
                                    description: OAuth2 scopes used for the token request
                                    items:
                                      type: string
                                    type: array
                                  tokenUrl:
                                    description: The URL to fetch the token from
                                    minLength: 1
                                    type: string
                                required:
                                - clientId
                                - clientSecret
                                - tokenUrl
                                type: object
Lili Cosic's avatar
Lili Cosic committed
                              proxyURL:
                                description: Optional proxy URL.
                                type: string
                              tlsConfig:
                                description: TLS configuration for the client.
                                properties:
                                  ca:
                                    description: Certificate authority used when verifying server certificates.
Lili Cosic's avatar
Lili Cosic committed
                                    properties:
                                      configMap:
                                        description: ConfigMap containing data to use for the targets.
Lili Cosic's avatar
Lili Cosic committed
                                        properties:
                                          key:
                                            description: The key to select.
                                            type: string
                                          name:
                                            description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?'
Lili Cosic's avatar
Lili Cosic committed
                                            type: string
                                          optional:
                                            description: Specify whether the ConfigMap or its key must be defined
Lili Cosic's avatar
Lili Cosic committed
                                            type: boolean
                                        required:
                                        - key
                                        type: object
                                        x-kubernetes-map-type: atomic
Lili Cosic's avatar
Lili Cosic committed
                                      secret:
                                        description: Secret containing data to use for the targets.
Lili Cosic's avatar
Lili Cosic committed
                                        properties:
                                          key:
                                            description: The key of the secret to select from.  Must be a valid secret key.
Lili Cosic's avatar
Lili Cosic committed
                                            type: string
                                          name:
                                            description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?'
Lili Cosic's avatar
Lili Cosic committed
                                            type: string
                                          optional:
                                            description: Specify whether the Secret or its key must be defined
Lili Cosic's avatar
Lili Cosic committed
                                            type: boolean
                                        required:
                                        - key
                                        type: object
                                        x-kubernetes-map-type: atomic
Lili Cosic's avatar
Lili Cosic committed
                                    type: object
                                  cert:
                                    description: Client certificate to present when doing client-authentication.
Lili Cosic's avatar
Lili Cosic committed
                                    properties:
                                      configMap:
                                        description: ConfigMap containing data to use for the targets.
Lili Cosic's avatar
Lili Cosic committed
                                        properties:
                                          key:
                                            description: The key to select.
                                            type: string
                                          name:
                                            description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?'
Lili Cosic's avatar
Lili Cosic committed
                                            type: string
                                          optional:
                                            description: Specify whether the ConfigMap or its key must be defined
Lili Cosic's avatar
Lili Cosic committed
                                            type: boolean
                                        required:
                                        - key
                                        type: object
                                        x-kubernetes-map-type: atomic
Lili Cosic's avatar
Lili Cosic committed
                                      secret:
                                        description: Secret containing data to use for the targets.
Lili Cosic's avatar
Lili Cosic committed
                                        properties:
                                          key:
                                            description: The key of the secret to select from.  Must be a valid secret key.
Lili Cosic's avatar
Lili Cosic committed
                                            type: string
                                          name:
                                            description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?'
Lili Cosic's avatar
Lili Cosic committed
                                            type: string
                                          optional:
                                            description: Specify whether the Secret or its key must be defined
Lili Cosic's avatar
Lili Cosic committed
                                            type: boolean
                                        required:
                                        - key
                                        type: object
                                        x-kubernetes-map-type: atomic
Lili Cosic's avatar
Lili Cosic committed
                                    type: object
                                  insecureSkipVerify:
                                    description: Disable target certificate validation.
                                    type: boolean
                                  keySecret:
                                    description: Secret containing the client key file for the targets.
Lili Cosic's avatar
Lili Cosic committed
                                    properties:
                                      key:
                                        description: The key of the secret to select from.  Must be a valid secret key.
Lili Cosic's avatar
Lili Cosic committed
                                        type: string
                                      name:
                                        description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?'
Lili Cosic's avatar
Lili Cosic committed
                                        type: string
                                      optional:
                                        description: Specify whether the Secret or its key must be defined
Lili Cosic's avatar
Lili Cosic committed
                                        type: boolean
                                    required:
                                    - key
                                    type: object
                                    x-kubernetes-map-type: atomic
Lili Cosic's avatar
Lili Cosic committed
                                  serverName:
                                    description: Used to verify the hostname for the targets.
Lili Cosic's avatar
Lili Cosic committed
                                    type: string
                                type: object
                            type: object
                          maxAlerts:
                            description: Maximum number of alerts to be sent per webhook message. When 0, all alerts are included.
Lili Cosic's avatar
Lili Cosic committed
                            format: int32