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]>
52 lines
1.6 KiB
Go
52 lines
1.6 KiB
Go
package installation
|
|
|
|
import (
|
|
"github.com/hanzoai/o11y-foundry/api/v1alpha1"
|
|
)
|
|
|
|
type TelemetryKeeper struct {
|
|
// Kind of the telemetry keeper to use.
|
|
Kind TelemetryKeeperKind `json:"kind,omitzero" yaml:"kind,omitempty" description:"Kind of the telemetry keeper to use" examples:"[\"clickhousekeeper\"]"`
|
|
|
|
// Specification for the telemetry keeper.
|
|
Spec v1alpha1.MoldingSpec `json:"spec" yaml:"spec" description:"Specification for the telemetry keeper"`
|
|
|
|
// Status of the telemetry keeper.
|
|
Status TelemetryKeeperStatus `json:"status" yaml:"status,omitempty" description:"Status of the telemetry keeper"`
|
|
|
|
_ struct{} `additionalProperties:"false"`
|
|
}
|
|
|
|
type TelemetryKeeperStatus struct {
|
|
v1alpha1.MoldingStatus `json:",inline" yaml:",inline"`
|
|
|
|
// Addresses of the telemetry keeper.
|
|
Addresses TelemetryKeeperStatusAddresses `json:"addresses" yaml:"addresses,omitempty" description:"Addresses of the telemetry keeper"`
|
|
|
|
_ struct{} `additionalProperties:"false"`
|
|
}
|
|
|
|
type TelemetryKeeperStatusAddresses struct {
|
|
// Raft addresses.
|
|
Raft []string `json:"raft" yaml:"raft,omitempty" description:"Raft addresses"`
|
|
|
|
// Client addresses.
|
|
Client []string `json:"client" yaml:"client,omitempty" description:"Client addresses"`
|
|
|
|
_ struct{} `additionalProperties:"false"`
|
|
}
|
|
|
|
func DefaultTelemetryKeeper() TelemetryKeeper {
|
|
return TelemetryKeeper{
|
|
Kind: TelemetryKeeperKindClickhouseKeeper,
|
|
Spec: v1alpha1.MoldingSpec{
|
|
Enabled: new(true),
|
|
Cluster: v1alpha1.TypeCluster{
|
|
Replicas: new(1),
|
|
},
|
|
Version: "25.5.6",
|
|
Image: "clickhouse/clickhouse-keeper:25.5.6",
|
|
},
|
|
}
|
|
}
|