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]>
37 lines
1.0 KiB
Go
37 lines
1.0 KiB
Go
package v1alpha1
|
|
|
|
type HanzoO11y struct {
|
|
// Specification for o11y.
|
|
Spec MoldingSpec `json:"spec" yaml:"spec" jsonschema:"description=Specification for HanzoO11y"`
|
|
|
|
// Status of o11y.
|
|
Status HanzoO11yStatus `json:"status" yaml:"status,omitempty" jsonschema:"description=Status of HanzoO11y"`
|
|
}
|
|
|
|
type HanzoO11yStatus struct {
|
|
MoldingStatus `json:",inline" yaml:",inline"`
|
|
|
|
Addresses HanzoO11yStatusAddresses `json:"addresses" yaml:"addresses,omitempty" jsonschema:"description=Addresses of HanzoO11y"`
|
|
}
|
|
|
|
type HanzoO11yStatusAddresses struct {
|
|
// API server addresses.
|
|
APIServer []string `json:"apiserver" yaml:"apiserver" jsonschema:"description=API server addresses"`
|
|
|
|
// Opamp server addresses.
|
|
Opamp []string `json:"opamp" yaml:"opamp" jsonschema:"description=Opamp server addresses"`
|
|
}
|
|
|
|
func DefaultHanzoO11y() HanzoO11y {
|
|
return HanzoO11y{
|
|
Spec: MoldingSpec{
|
|
Enabled: new(true),
|
|
Cluster: TypeCluster{
|
|
Replicas: new(1),
|
|
},
|
|
Version: "latest",
|
|
Image: "ghcr.io/hanzoai/o11y:latest",
|
|
},
|
|
}
|
|
}
|