Skip to content

Commit

Permalink
Merge pull request #103 from Peefy/add-more-kubernetes-modules
Browse files Browse the repository at this point in the history
feat: add more kubernetes modules
  • Loading branch information
Peefy authored Dec 18, 2023
2 parents c7274cd + 174d399 commit b5d1707
Show file tree
Hide file tree
Showing 35 changed files with 65,848 additions and 0 deletions.
9,489 changes: 9,489 additions & 0 deletions datadog-operator/README.md

Large diffs are not rendered by default.

18,741 changes: 18,741 additions & 0 deletions datadog-operator/crds/datadog-operator.yaml

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions datadog-operator/kcl.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[package]
name = "datadog-operator"
edition = "0.0.1"
version = "0.0.1"

Empty file added datadog-operator/kcl.mod.lock
Empty file.
12,398 changes: 12,398 additions & 0 deletions datadog-operator/v1alpha1/datadoghq_com_v1alpha1_datadog_agent.k

Large diffs are not rendered by default.

119 changes: 119 additions & 0 deletions datadog-operator/v1alpha1/datadoghq_com_v1alpha1_datadog_metric.k
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
"""
This file was generated by the KCL auto-gen tool. DO NOT EDIT.
Editing this file might prove futile when you re-run the KCL auto-gen generate command.
"""
import k8s.apimachinery.pkg.apis.meta.v1


schema DatadogMetric:
"""
DatadogMetric allows autoscaling on arbitrary Datadog query

Attributes
----------
apiVersion : str, default is "datadoghq.com/v1alpha1", required
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
kind : str, default is "DatadogMetric", required
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
metadata : v1.ObjectMeta, default is Undefined, optional
metadata
spec : DatadoghqComV1alpha1DatadogMetricSpec, default is Undefined, optional
spec
status : DatadoghqComV1alpha1DatadogMetricStatus, default is Undefined, optional
status
"""


apiVersion: "datadoghq.com/v1alpha1" = "datadoghq.com/v1alpha1"

kind: "DatadogMetric" = "DatadogMetric"

metadata?: v1.ObjectMeta

spec?: DatadoghqComV1alpha1DatadogMetricSpec

status?: DatadoghqComV1alpha1DatadogMetricStatus


schema DatadoghqComV1alpha1DatadogMetricSpec:
"""
DatadogMetricSpec defines the desired state of DatadogMetric

Attributes
----------
externalMetricName : str, default is Undefined, optional
ExternalMetricName is reserved for internal use
maxAge : str, default is Undefined, optional
MaxAge provides the max age for the metric query (overrides the default setting `external_metrics_provider.max_age`)
query : str, default is Undefined, optional
Query is the raw datadog query
timeWindow : str, default is Undefined, optional
TimeWindow provides the time window for the metric query, defaults to MaxAge.
"""


externalMetricName?: str

maxAge?: str

query?: str

timeWindow?: str


schema DatadoghqComV1alpha1DatadogMetricStatus:
"""
DatadogMetricStatus defines the observed state of DatadogMetric

Attributes
----------
autoscalerReferences : str, default is Undefined, optional
List of autoscalers currently using this DatadogMetric
conditions : [DatadoghqComV1alpha1DatadogMetricStatusConditionsItems0], default is Undefined, optional
Conditions Represents the latest available observations of a DatadogMetric's current state.
currentValue : str, default is Undefined, required
Value is the latest value of the metric
"""


autoscalerReferences?: str

conditions?: [DatadoghqComV1alpha1DatadogMetricStatusConditionsItems0]

currentValue: str


schema DatadoghqComV1alpha1DatadogMetricStatusConditionsItems0:
"""
DatadogMetricCondition describes the state of a DatadogMetric at a certain point.

Attributes
----------
lastTransitionTime : str, default is Undefined, optional
Last time the condition transitioned from one status to another.
lastUpdateTime : str, default is Undefined, optional
Last time the condition was updated.
message : str, default is Undefined, optional
A human readable message indicating details about the transition.
reason : str, default is Undefined, optional
The reason for the condition's last transition.
status : str, default is Undefined, required
Status of the condition, one of True, False, Unknown.
$type : str, default is Undefined, required
Type of DatadogMetric condition.
"""


lastTransitionTime?: str

lastUpdateTime?: str

message?: str

reason?: str

status: str

$type: str


Loading

0 comments on commit b5d1707

Please sign in to comment.