Skip to content

feat: add more kubernetes modules #103

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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