Skip to content

Commit

Permalink
fix: add input types for loki and tempo
Browse files Browse the repository at this point in the history
Signed-off-by: David van der Spek <vanderspek.david@gmail.com>
  • Loading branch information
davidspek committed Jul 13, 2023
1 parent dedc423 commit 01b764e
Show file tree
Hide file tree
Showing 4 changed files with 545 additions and 54 deletions.
2 changes: 2 additions & 0 deletions api/observability/v1alpha1/loki_limit_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@ type LokiLimits struct {
IndexGatewayShardSize *int `yaml:"index_gateway_shard_size,omitempty" json:"index_gateway_shard_size,omitempty"`
}

type LokiLimitsInput LokiLimits

type StreamRetention struct {
Period metav1.Duration `yaml:"period" json:"period"`
Priority *int `yaml:"priority" json:"priority"`
Expand Down
5 changes: 0 additions & 5 deletions api/observability/v1alpha1/mimir_limit_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,11 +239,6 @@ type MimirLimits struct {

type MimirLimitsInput MimirLimits

type ForwardingRule struct {
// Ingest defines whether a metric should still be pushed to the Ingesters despite it being forwarded.
Ingest *bool `yaml:"ingest,omitempty" json:"ingest,omitempty"`
}

const (
// TenantReadyCondition reports on current status of the Tenant. Ready indicates the tenant has been created and the limits have been applied.
TenantReadyCondition crhelperTypes.ConditionType = "TenantReady"
Expand Down
2 changes: 2 additions & 0 deletions api/observability/v1alpha1/tempo_limit_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ type TempoLimits struct {
MaxBytesPerTrace *int `yaml:"max_bytes_per_trace,omitempty" json:"max_bytes_per_trace,omitempty"`
}

type TempoLimitsInput TempoLimits

type FilterPolicy struct {
// +kubebuilder:validation:Optional
Include *PolicyMatch `yaml:"include,omitempty" json:"include,omitempty"`
Expand Down
Loading

0 comments on commit 01b764e

Please sign in to comment.