Skip to content

Commit

Permalink
fix: type saga continues
Browse files Browse the repository at this point in the history
Signed-off-by: David van der Spek <[email protected]>
  • Loading branch information
davidspek committed Jul 14, 2023
1 parent 1da8622 commit 99045d1
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 34 deletions.
6 changes: 3 additions & 3 deletions api/observability/v1alpha1/loki_limit_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ type LokiLimits struct {
ShardStreams *ShardstreamsConfig `yaml:"shard_streams,omitempty" json:"shard_streams,omitempty"`

// +kubebuilder:validation:Optional
BlockedQueries []*BlockedQuery `yaml:"blocked_queries,omitempty" json:"blocked_queries,omitempty"`
BlockedQueries []BlockedQuery `yaml:"blocked_queries,omitempty" json:"blocked_queries,omitempty"`

// +kubebuilder:validation:Optional
RequiredLabels []string `yaml:"required_labels,omitempty" json:"required_labels,omitempty" doc:"description=Define a list of required selector labels."`
Expand Down Expand Up @@ -298,8 +298,8 @@ type RulerAlertManagerConfig struct {
// +kubebuilder:validation:Optional
AlertmanangerEnableV2API *bool `yaml:"enable_alertmanager_v2,omitempty" json:"enable_alertmanager_v2,omitempty"`
// Configuration for alert relabeling.
// +kubebuilder:validation:Optional // TODO: remove all references to this to our own type since the yaml tags will be different
AlertRelabelConfigs []*RelabelConfig `yaml:"alert_relabel_configs,omitempty" json:"alert_relabel_configs,omitempty" doc:"description=List of alert relabel configs."`
// +kubebuilder:validation:Optional
AlertRelabelConfigs []RelabelConfig `yaml:"alert_relabel_configs,omitempty" json:"alert_relabel_configs,omitempty" doc:"description=List of alert relabel configs."`
// Capacity of the queue for notifications to be sent to the Alertmanager.
// +kubebuilder:validation:Optional
NotificationQueueCapacity *int `yaml:"notification_queue_capacity,omitempty" json:"notification_queue_capacity,omitempty"`
Expand Down
2 changes: 1 addition & 1 deletion api/observability/v1alpha1/mimir_limit_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ type MimirLimits struct {
// +kubebuilder:validation:Optional
IngestionTenantShardSize *int `yaml:"ingestion_tenant_shard_size,omitempty" json:"ingestion_tenant_shard_size,omitempty"`
// +kubebuilder:validation:Optional
MetricRelabelConfigs []*RelabelConfig `yaml:"metric_relabel_configs,omitempty" json:"metric_relabel_configs,omitempty" doc:"nocli|description=List of metric relabel configurations. Note that in most situations, it is more effective to use metrics relabeling directly in the Prometheus server, e.g. remote_write.write_relabel_configs." category:"experimental"`
MetricRelabelConfigs []RelabelConfig `yaml:"metric_relabel_configs,omitempty" json:"metric_relabel_configs,omitempty" doc:"nocli|description=List of metric relabel configurations. Note that in most situations, it is more effective to use metrics relabeling directly in the Prometheus server, e.g. remote_write.write_relabel_configs." category:"experimental"`

// Ingester enforced limits.
// Series
Expand Down
40 changes: 10 additions & 30 deletions api/observability/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 99045d1

Please sign in to comment.