-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcrd-v1beta1.yaml
106 lines (105 loc) · 3.61 KB
/
crd-v1beta1.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# Deprecated in v1.16 in favor of apiextensions.k8s.io/v1
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
# name must match the spec fields below, and be in the form: <plural>.<group>
name: cwalerts.crd.k8s.sas.io
spec:
# group name to use for REST API: /apis/<group>/<version>
group: crd.k8s.sas.io
# list of versions supported by this CustomResourceDefinition
versions:
- name: v1
# Each version can be enabled/disabled by Served flag.
served: true
# One and only one version must be marked as the storage version.
storage: true
# either Namespaced or Cluster
scope: Namespaced
names:
# plural name to be used in the URL: /apis/<group>/<version>/<plural>
plural: cwalerts
# singular name to be used as an alias on the CLI and for display
singular: cwalert
# kind is normally the CamelCased singular type. Your resource manifests use this.
kind: CloudWatchMetricAlarm
# shortNames allow shorter string to match your resource on the CLI
shortNames:
- cwa
# preserveUnknownFields: false
validation:
openAPIV3Schema:
type: object
properties:
spec:
type: object
properties:
AlarmName:
type: string
# minLength: 1
# maxLenght: 255
ComparisonOperator:
type: string
pattern: 'GreaterThanOrEqualToThreshold|GreaterThanThreshold|LessThanThreshold|LessThanOrEqualToThreshold|LessThanLowerOrGreaterThanUpperThreshold|LessThanLowerThreshold|GreaterThanUpperThreshold'
EvaluationPeriods:
type: integer
minimum: 1
MetricName:
type: string
# minLength: 1
# maxLenght: 255
Namespace:
type: string
# minLength: 1
# maxLenght: 255
pattern: '[^:].*'
Period:
type: integer
minimum: 1
Statistic:
type: string
pattern: 'SampleCount|Average|Sum|Minimum|Maximum'
Threshold:
type: number
format: double
InsufficientDataActions:
type: array
items:
type: string
AlarmDescription:
type: string
# default: "Created by cwalerts.sas.io CRD"
AlarmActions:
type: array
items:
type: string
OKActions:
type: array
items:
type: string
TreatMissingData:
type: string
# default: "notBreaching"
Tags:
type: array
items:
type: object
properties:
Key:
type: string
Value:
type: string
Dimensions:
type: array
items:
type: object
properties:
Name:
type: string
Value:
type: string
Unit:
type: string
pattern: 'Seconds|Microseconds|Milliseconds|Bytes|Kilobytes|Megabytes|Gigabytes|Terabytes|Bits|Kilobits|Megabits|Gigabits|Terabits|Percent|Count|Bytes\/Second|Kilobytes\/Second|Megabytes\/Second|Gigabytes\/Second|Terabytes\/Second|Bits\/Second|Kilobits\/Second|Megabits\/Second|Gigabits\/Second|Terabits\/Second|Count\/Second|None'
# required:
# - MetricName