Files
zeekay 4e3a8ef9ca merge: upstream/main (preserve Hanzo brand, 50 commits)
# Conflicts:
#	api/v1alpha1/casting.go
#	api/v1alpha1/installation/signoz.go
#	docs/casting.md
#	docs/examples/docker/compose/pours/deployment/configs/ingester/opamp.yaml
#	docs/examples/systemd/binary/pours/deployment/signoz-ingester.service
#	docs/examples/systemd/binary/pours/deployment/signoz-signoz.service
#	docs/examples/systemd/binary/pours/deployment/signoz-telemetrystore-migrator.service
#	docs/schemas/v1alpha1.yaml
#	internal/foundry/registry.go
#	internal/instrumentation/handler.go
#	internal/molding/signozmolding/signoz.go
2026-06-02 09:59:25 -07:00

47 lines
1.3 KiB
Go

package installation
import (
"github.com/hanzoai/o11y-foundry/internal/types"
)
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: v1alpha1.BoolPtr(true),
Cluster: v1alpha1.TypeCluster{
Replicas: v1alpha1.IntPtr(1),
},
Version: "16",
Image: "postgres:16",
},
}
}