Files
zeekayandHanzo Dev 1fbfb3aea3 Go 1.27.1, and the code it can say more simply
Modules declare go 1.27.1 and the build images follow. go fix applied the
modernizers, and new(expr) now says what the internal pointer helpers did,
so they are gone; omitzero is not applied, since it changes what the JSON says.

Co-authored-by: Hanzo Dev <[email protected]>
2026-09-16 19:47:09 -07:00

41 lines
1.1 KiB
Go

package collectionagent
import "github.com/hanzoai/o11y-foundry/api/v1alpha1"
type Collector struct {
// Kind of the collector to use.
Kind CollectorKind `json:"kind,omitzero" yaml:"kind,omitempty" description:"Kind of the collector to use" examples:"[\"agent\"]"`
// Specification for the collector.
Spec v1alpha1.MoldingSpec `json:"spec" yaml:"spec" description:"Specification for the collector"`
// Status of the collector.
Status CollectorStatus `json:"status" yaml:"status,omitempty" description:"Status of the collector"`
_ struct{} `additionalProperties:"false"`
}
type CollectorStatus struct {
v1alpha1.MoldingStatus `json:",inline" yaml:",inline"`
_ struct{} `additionalProperties:"false"`
}
func DefaultCollector() Collector {
return Collector{
Kind: CollectorKindAgent,
Spec: v1alpha1.MoldingSpec{
Enabled: new(true),
Cluster: v1alpha1.TypeCluster{
Replicas: new(1),
},
Version: "v0.139.0",
Image: "otel/opentelemetry-collector-contrib:v0.139.0",
Env: map[string]string{},
Config: v1alpha1.TypeConfig{
Data: map[string]string{},
},
},
}
}