You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// OTLPResourceAttributesSpec contains the configuration for resource attributes
864
+
// to store them as index labels or structured metadata or drop them altogether.
865
+
typeOTLPResourceAttributesSpecstruct {
866
+
// IgnoreDefaults controls whether to ignore the global configuration for resource attributes
867
+
// indexed as labels.
868
+
//
869
+
// If IgnoreDefaults is true, then this spec needs to contain at least one mapping to a index label.
870
+
//
871
+
// +optional
872
+
// +kubebuilder:validation:Optional
873
+
// +operator-sdk:csv:customresourcedefinitions:type=spec,xDescriptors="urn:alm:descriptor:com.tectonic.ui:booleanSwitch",displayName="Ignore Global Defaults"
Copy file name to clipboardExpand all lines: operator/apis/loki/v1/v1.go
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -84,6 +84,13 @@ var (
84
84
// ErrIPv6InstanceAddrTypeNotAllowed when the default InstanceAddrType is used with enableIPv6.
85
85
ErrIPv6InstanceAddrTypeNotAllowed=errors.New(`instanceAddrType "default" cannot be used with enableIPv6 at the same time`)
86
86
87
+
// ErrOTLPResourceAttributesEmptyNotAllowed when the OTLP ResourceAttributes are empty even though ignoreDefaults is enabled.
88
+
ErrOTLPResourceAttributesEmptyNotAllowed=errors.New(`resourceAttributes cannot be empty when ignoreDefaults is true`)
89
+
// ErrOTLPResourceAttributesIndexLabelActionMissing when OTLP ResourceAttributes does not contain at least one index label when ignoreDefaults is enabled.
90
+
ErrOTLPResourceAttributesIndexLabelActionMissing=errors.New(`resourceAttributes does not contain at least one attributed mapped to "index_label"`)
91
+
// ErrOTLPAttributesSpecInvalid when the OTLPAttributesSpec attibutes and regex fields are both empty.
92
+
ErrOTLPAttributesSpecInvalid=errors.New(`attributes and regex cannot be empty at the same time`)
93
+
87
94
// ErrRuleMustMatchNamespace indicates that an expression used in an alerting or recording rule is missing
88
95
// matchers for a namespace.
89
96
ErrRuleMustMatchNamespace=errors.New("rule needs to have a matcher for the namespace")
0 commit comments