Skip to content

Commit

Permalink
Initial commit - minimal api
Browse files Browse the repository at this point in the history
  • Loading branch information
khewonc committed Feb 13, 2025
1 parent 91095b8 commit e430bf0
Show file tree
Hide file tree
Showing 14 changed files with 13,725 additions and 7 deletions.
9 changes: 9 additions & 0 deletions PROJECT
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,13 @@ resources:
kind: DatadogPodAutoscaler
path: github.com/DataDog/datadog-operator/api/datadoghq/v1alpha2
version: v1alpha2
- api:
crdVersion: v1
namespaced: true
controller: true
domain: com
group: datadoghq
kind: DatadogAgentInternal
path: github.com/DataDog/datadog-operator/api/datadoghq/v1alpha1
version: v1alpha1
version: "3"
45 changes: 45 additions & 0 deletions api/datadoghq/v1alpha1/datadogagentinternal_types.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
// Unless explicitly stated otherwise all files in this repository are licensed
// under the Apache License Version 2.0.
// This product includes software developed at Datadog (https://www.datadoghq.com/).
// Copyright 2016-present Datadog, Inc.

package v1alpha1

import (
"github.com/DataDog/datadog-operator/api/datadoghq/v2alpha1"

metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)

// DatadogAgentInternalStatus defines the observed state of DatadogAgentInternal
type DatadogAgentInternalStatus struct {
// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
// Important: Run "make" to regenerate code after modifying this file
}

//+kubebuilder:object:root=true
//+kubebuilder:subresource:status

// +kubebuilder:resource:path=datadogagentinternals,shortName=ddai
// +k8s:openapi-gen=true
// DatadogAgentInternal is the Schema for the datadogagentinternals API
type DatadogAgentInternal struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`

Spec v2alpha1.DatadogAgentSpec `json:"spec,omitempty"`
Status DatadogAgentInternalStatus `json:"status,omitempty"`
}

//+kubebuilder:object:root=true

// DatadogAgentInternalList contains a list of DatadogAgentInternal
type DatadogAgentInternalList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []DatadogAgentInternal `json:"items"`
}

func init() {
SchemeBuilder.Register(&DatadogAgentInternal{}, &DatadogAgentInternalList{})
}
74 changes: 74 additions & 0 deletions api/datadoghq/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e430bf0

Please sign in to comment.