mirror of
https://github.com/hanzoai/o11y-foundry.git
synced 2026-10-30 18:26:45 +00:00
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]>
49 lines
1.4 KiB
Go
49 lines
1.4 KiB
Go
package installation
|
|
|
|
import (
|
|
"github.com/hanzoai/o11y-foundry/api/v1alpha1"
|
|
)
|
|
|
|
type TelemetryStore struct {
|
|
// Kind of the telemetry store to use.
|
|
Kind TelemetryStoreKind `json:"kind,omitzero" yaml:"kind,omitempty" description:"Kind of the telemetry store to use" examples:"[\"clickhouse\"]"`
|
|
|
|
// Specification for the telemetry store.
|
|
Spec v1alpha1.MoldingSpec `json:"spec" yaml:"spec" description:"Specification for the telemetry store"`
|
|
|
|
// Status of the telemetry store.
|
|
Status TelemetryStoreStatus `json:"status" yaml:"status,omitempty" description:"Status of the telemetry store"`
|
|
|
|
_ struct{} `additionalProperties:"false"`
|
|
}
|
|
|
|
type TelemetryStoreStatus struct {
|
|
v1alpha1.MoldingStatus `json:",inline" yaml:",inline"`
|
|
|
|
Addresses TelemetryStoreStatusAddresses `json:"addresses" yaml:"addresses,omitempty" description:"Addresses of the telemetry store"`
|
|
|
|
_ struct{} `additionalProperties:"false"`
|
|
}
|
|
|
|
type TelemetryStoreStatusAddresses struct {
|
|
// TCP addresses.
|
|
TCP []string `json:"tcp" yaml:"tcp" description:"TCP addresses"`
|
|
|
|
_ struct{} `additionalProperties:"false"`
|
|
}
|
|
|
|
func DefaultTelemetryStore() TelemetryStore {
|
|
return TelemetryStore{
|
|
Kind: TelemetryStoreKindClickhouse,
|
|
Spec: v1alpha1.MoldingSpec{
|
|
Enabled: new(true),
|
|
Cluster: v1alpha1.TypeCluster{
|
|
Replicas: new(0),
|
|
Shards: new(1),
|
|
},
|
|
Version: "25.5.6",
|
|
Image: "ghcr.io/hanzoai/datastore:25.5.6",
|
|
},
|
|
}
|
|
}
|