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]>
47 lines
1.3 KiB
Go
47 lines
1.3 KiB
Go
package installation
|
|
|
|
import (
|
|
"github.com/hanzoai/o11y-foundry/api/v1alpha1"
|
|
)
|
|
|
|
type MetaStore struct {
|
|
// Kind of the meta store to use.
|
|
Kind MetaStoreKind `json:"kind,omitzero" yaml:"kind,omitempty" description:"Kind of the meta store to use" examples:"[\"postgres\",\"sqlite\"]"`
|
|
|
|
// Specification for the meta store.
|
|
Spec v1alpha1.MoldingSpec `json:"spec" yaml:"spec" description:"Specification for the meta store"`
|
|
|
|
// Status of the meta store.
|
|
Status MetaStoreStatus `json:"status" yaml:"status,omitempty" description:"Status of the meta store"`
|
|
|
|
_ struct{} `additionalProperties:"false"`
|
|
}
|
|
|
|
type MetaStoreStatus struct {
|
|
v1alpha1.MoldingStatus `json:",inline" yaml:",inline"`
|
|
|
|
Addresses MetaStoreStatusAddresses `json:"addresses" yaml:"addresses,omitempty" description:"Addresses of the meta store"`
|
|
|
|
_ struct{} `additionalProperties:"false"`
|
|
}
|
|
|
|
type MetaStoreStatusAddresses struct {
|
|
// DSN addresses.
|
|
DSN []string `json:"dsn" yaml:"dsn" description:"DSN addresses"`
|
|
_ struct{} `additionalProperties:"false"`
|
|
}
|
|
|
|
func DefaultMetaStore() MetaStore {
|
|
return MetaStore{
|
|
Kind: MetaStoreKindPostgres,
|
|
Spec: v1alpha1.MoldingSpec{
|
|
Enabled: new(true),
|
|
Cluster: v1alpha1.TypeCluster{
|
|
Replicas: new(1),
|
|
},
|
|
Version: "16",
|
|
Image: "postgres:16",
|
|
},
|
|
}
|
|
}
|