Skip to content

Commit 174d399

Browse files
committed
feat: add more kubernetes modules
Signed-off-by: peefy <[email protected]>
1 parent c7274cd commit 174d399

35 files changed

+65848
-0
lines changed

datadog-operator/README.md

+9,489
Large diffs are not rendered by default.

datadog-operator/crds/datadog-operator.yaml

+18,741
Large diffs are not rendered by default.

datadog-operator/kcl.mod

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[package]
2+
name = "datadog-operator"
3+
edition = "0.0.1"
4+
version = "0.0.1"
5+

datadog-operator/kcl.mod.lock

Whitespace-only changes.

datadog-operator/v1alpha1/datadoghq_com_v1alpha1_datadog_agent.k

+12,398
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
"""
2+
This file was generated by the KCL auto-gen tool. DO NOT EDIT.
3+
Editing this file might prove futile when you re-run the KCL auto-gen generate command.
4+
"""
5+
import k8s.apimachinery.pkg.apis.meta.v1
6+
7+
8+
schema DatadogMetric:
9+
"""
10+
DatadogMetric allows autoscaling on arbitrary Datadog query
11+
12+
Attributes
13+
----------
14+
apiVersion : str, default is "datadoghq.com/v1alpha1", required
15+
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
16+
kind : str, default is "DatadogMetric", required
17+
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
18+
metadata : v1.ObjectMeta, default is Undefined, optional
19+
metadata
20+
spec : DatadoghqComV1alpha1DatadogMetricSpec, default is Undefined, optional
21+
spec
22+
status : DatadoghqComV1alpha1DatadogMetricStatus, default is Undefined, optional
23+
status
24+
"""
25+
26+
27+
apiVersion: "datadoghq.com/v1alpha1" = "datadoghq.com/v1alpha1"
28+
29+
kind: "DatadogMetric" = "DatadogMetric"
30+
31+
metadata?: v1.ObjectMeta
32+
33+
spec?: DatadoghqComV1alpha1DatadogMetricSpec
34+
35+
status?: DatadoghqComV1alpha1DatadogMetricStatus
36+
37+
38+
schema DatadoghqComV1alpha1DatadogMetricSpec:
39+
"""
40+
DatadogMetricSpec defines the desired state of DatadogMetric
41+
42+
Attributes
43+
----------
44+
externalMetricName : str, default is Undefined, optional
45+
ExternalMetricName is reserved for internal use
46+
maxAge : str, default is Undefined, optional
47+
MaxAge provides the max age for the metric query (overrides the default setting `external_metrics_provider.max_age`)
48+
query : str, default is Undefined, optional
49+
Query is the raw datadog query
50+
timeWindow : str, default is Undefined, optional
51+
TimeWindow provides the time window for the metric query, defaults to MaxAge.
52+
"""
53+
54+
55+
externalMetricName?: str
56+
57+
maxAge?: str
58+
59+
query?: str
60+
61+
timeWindow?: str
62+
63+
64+
schema DatadoghqComV1alpha1DatadogMetricStatus:
65+
"""
66+
DatadogMetricStatus defines the observed state of DatadogMetric
67+
68+
Attributes
69+
----------
70+
autoscalerReferences : str, default is Undefined, optional
71+
List of autoscalers currently using this DatadogMetric
72+
conditions : [DatadoghqComV1alpha1DatadogMetricStatusConditionsItems0], default is Undefined, optional
73+
Conditions Represents the latest available observations of a DatadogMetric's current state.
74+
currentValue : str, default is Undefined, required
75+
Value is the latest value of the metric
76+
"""
77+
78+
79+
autoscalerReferences?: str
80+
81+
conditions?: [DatadoghqComV1alpha1DatadogMetricStatusConditionsItems0]
82+
83+
currentValue: str
84+
85+
86+
schema DatadoghqComV1alpha1DatadogMetricStatusConditionsItems0:
87+
"""
88+
DatadogMetricCondition describes the state of a DatadogMetric at a certain point.
89+
90+
Attributes
91+
----------
92+
lastTransitionTime : str, default is Undefined, optional
93+
Last time the condition transitioned from one status to another.
94+
lastUpdateTime : str, default is Undefined, optional
95+
Last time the condition was updated.
96+
message : str, default is Undefined, optional
97+
A human readable message indicating details about the transition.
98+
reason : str, default is Undefined, optional
99+
The reason for the condition's last transition.
100+
status : str, default is Undefined, required
101+
Status of the condition, one of True, False, Unknown.
102+
$type : str, default is Undefined, required
103+
Type of DatadogMetric condition.
104+
"""
105+
106+
107+
lastTransitionTime?: str
108+
109+
lastUpdateTime?: str
110+
111+
message?: str
112+
113+
reason?: str
114+
115+
status: str
116+
117+
$type: str
118+
119+

0 commit comments

Comments
 (0)