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

45 lines
1.2 KiB
Go

package installation
import "github.com/hanzoai/o11y-foundry/api/v1alpha1"
type Ingester struct {
// Specification for the ingester.
Spec v1alpha1.MoldingSpec `json:"spec" yaml:"spec" jsonschema:"description=Specification for the ingester"`
// Status of the ingester.
Status IngesterStatus `json:"status" yaml:"status,omitempty" jsonschema:"description=Status of the ingester"`
_ struct{} `additionalProperties:"false"`
}
type IngesterStatus struct {
v1alpha1.MoldingStatus `json:",inline" yaml:",inline"`
Addresses IngesterStatusAddresses `json:"addresses" yaml:"addresses,omitempty" jsonschema:"description=Addresses of the ingester"`
_ struct{} `additionalProperties:"false"`
}
type IngesterStatusAddresses struct {
OTLP []string `json:"otlp" yaml:"otlp" jsonschema:"description=OTLP addresses"`
_ struct{} `additionalProperties:"false"`
}
func DefaultIngester() Ingester {
return Ingester{
Spec: v1alpha1.MoldingSpec{
Enabled: new(true),
Cluster: v1alpha1.TypeCluster{
Replicas: new(1),
},
Version: "latest",
Image: "ghcr.io/hanzoai/otel-collector:latest",
Env: map[string]string{},
Config: v1alpha1.TypeConfig{
Data: map[string]string{},
},
},
}
}