mirror of
https://github.com/hanzoai/o11y-foundry.git
synced 2026-10-30 18:26:45 +00:00
# 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
39 lines
1.9 KiB
Go
39 lines
1.9 KiB
Go
package v1alpha1
|
|
|
|
type TypeVersion struct {
|
|
APIVersion string `json:"apiVersion" yaml:"apiVersion" required:"true" nullable:"false" enum:"v1alpha1" description:"API Version of the configuration schema." default:"v1alpha1" example:"v1alpha1"`
|
|
}
|
|
|
|
type TypeMetadata struct {
|
|
// The name of this installation. This name can be used to identify the installation.
|
|
Name string `json:"name,omitempty" yaml:"name,omitempty" description:"The name of this installation" example:"o11y-dev"`
|
|
|
|
// Annotations is an unstructured key-value map for arbitrary metadata.
|
|
// Can be used to specify deployment-specific settings.
|
|
Annotations map[string]string `json:"annotations,omitempty" yaml:"annotations,omitempty" description:"Unstructured key-value map for arbitrary metadata"`
|
|
}
|
|
|
|
type TypeCluster struct {
|
|
Replicas *int `json:"replicas,omitempty" yaml:"replicas,omitempty" minimum:"0" description:"Number of replicas for the molding." example:"1"`
|
|
Shards *int `json:"shards,omitempty" yaml:"shards,omitempty" minimum:"1" description:"Number of shards for the molding" example:"1"`
|
|
_ struct{} `additionalProperties:"false"`
|
|
}
|
|
|
|
type TypeConfig struct {
|
|
Data map[string]string `json:"data,omitempty" yaml:"data,omitempty" description:"Configuration data as key-value pairs."`
|
|
_ struct{} `additionalProperties:"false"`
|
|
}
|
|
|
|
type TypeDeployment struct {
|
|
// Platform: cloud or hosting provider where an installation runs.
|
|
Platform Platform `json:"platform,omitzero" yaml:"platform,omitempty" description:"Provider where an installation runs on"`
|
|
|
|
// Mode: type of installation method (engine or technology behind the deployment).
|
|
Mode Mode `json:"mode,omitzero" yaml:"mode,omitempty" description:"Type of installation method"`
|
|
|
|
// Flavor: variant of the mode for the deployment.
|
|
Flavor Flavor `json:"flavor,omitzero" yaml:"flavor,omitempty" description:"Flavor of mode for the deployment"`
|
|
|
|
_ struct{} `additionalProperties:"false"`
|
|
}
|