Skip to content
Snippets Groups Projects
0alertmanagerConfigCustomResourceDefinition.yaml 577 KiB
Newer Older
Lili Cosic's avatar
Lili Cosic committed
                        name:
                          description: Label to match.
paulfantom's avatar
paulfantom committed
                          minLength: 1
Lili Cosic's avatar
Lili Cosic committed
                          type: string
                        regex:
                          description: |-
                            Whether to match on equality (false) or regular-expression (true).
                            Deprecated: for AlertManager >= v0.22.0, `matchType` should be used instead.
Lili Cosic's avatar
Lili Cosic committed
                          type: boolean
                        value:
                          description: Label value to match.
                          type: string
                      required:
                      - name
                      type: object
                    type: array
                    description: |-
                      Note: this comment applies to the field definition above but appears
                      below otherwise it gets included in the generated manifest.
                      CRD schema doesn't support self-referential types for now (see
                      https://github.com/kubernetes/kubernetes/issues/62872). We have to use
                      an alternative type to circumvent the limitation. The downside is that
                      the Kube API can't validate the data beyond the fact that it is a valid
                      JSON representation.
                      MuteTimeIntervals is a list of MuteTimeInterval names that will mute this route when matched,
Lili Cosic's avatar
Lili Cosic committed
                  receiver:
                    description: |-
                      Name of the receiver for this route. If not empty, it should be listed in
                      the `receivers` field.
Lili Cosic's avatar
Lili Cosic committed
                    type: string
                  repeatInterval:
                    description: |-
                      How long to wait before repeating the last notification.
                      Must match the regular expression`^(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?$`
                      Example: "4h"
Lili Cosic's avatar
Lili Cosic committed
                    type: string
                  routes:
                    description: Child routes.
                    items:
                      x-kubernetes-preserve-unknown-fields: true
                    type: array
                type: object
            type: object
        required:
        - spec
        type: object
    served: true
    storage: true