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

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",
},
}
}