Skip to content

Commit f34dc0f

Browse files
committed
add support for pattern-ingester
1 parent 9d888ef commit f34dc0f

23 files changed

+617
-65
lines changed

operator/api/loki/v1/lokistack_types.go

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1099,14 +1099,15 @@ type RulesSpec struct {
10991099
NamespaceSelector *metav1.LabelSelector `json:"namespaceSelector,omitempty"`
11001100
}
11011101

1102-
type PatternIngesterSpec struct {
1102+
type PatternIngester struct {
11031103
// Enabled defines a flag to enable/disable the pattern-ingester component
11041104
//
11051105
// +required
11061106
// +kubebuilder:validation:Required
11071107
// +operator-sdk:csv:customresourcedefinitions:type=spec,xDescriptors="urn:alm:descriptor:com.tectonic.ui:booleanSwitch",displayName="Enable"
11081108
Enabled bool `json:"enabled"`
11091109
}
1110+
11101111
// LokiStackSpec defines the desired state of LokiStack
11111112
type LokiStackSpec struct {
11121113
// ManagementState defines if the CR should be managed by the operator or not.
@@ -1211,7 +1212,7 @@ type LokiStackSpec struct {
12111212
// +optional
12121213
// +kubebuilder:validation:Optional
12131214
// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Pattern-Ingester"
1214-
PatternIngesterSpec *PatternIngesterSpec `json:"patternIngesterSpec,omitempty"`
1215+
PatternIngester *PatternIngester `json:"patternIngester,omitempty"`
12151216
}
12161217

12171218
type ReplicationSpec struct {
@@ -1414,6 +1415,13 @@ type LokiStackComponentStatus struct {
14141415
// +kubebuilder:validation:Optional
14151416
// +operator-sdk:csv:customresourcedefinitions:type=status,xDescriptors="urn:alm:descriptor:com.tectonic.ui:podStatuses",displayName="Ruler",order=6
14161417
Ruler PodStatusMap `json:"ruler,omitempty"`
1418+
1419+
// PatternIngester is a map to the per pod status of the lokistack pattern ingester deployment.
1420+
//
1421+
// +optional
1422+
// +kubebuilder:validation:Optional
1423+
// +operator-sdk:csv:customresourcedefinitions:type=status,xDescriptors="urn:alm:descriptor:com.tectonic.ui:podStatuses",displayName="Pattern Ingester",order=6
1424+
PatternIngester PodStatusMap `json:"patternIngester,omitempty"`
14171425
}
14181426

14191427
// CredentialMode represents the type of authentication used for accessing the object storage.

operator/api/loki/v1/zz_generated.deepcopy.go

Lines changed: 23 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

operator/bundle/community/manifests/loki-operator.clusterserviceversion.yaml

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,8 @@ metadata:
151151
capabilities: Full Lifecycle
152152
categories: OpenShift Optional, Logging & Tracing
153153
certified: "false"
154-
containerImage: docker.io/grafana/loki-operator:0.9.0
155-
createdAt: "2025-12-03T16:22:01Z"
154+
containerImage: docker.io/grafana/loki-operator:0.8.0
155+
createdAt: "2025-11-28T11:49:45Z"
156156
description: The Community Loki Operator provides Kubernetes native deployment
157157
and management of Loki and related logging components.
158158
operators.operatorframework.io/builder: operator-sdk-unknown
@@ -660,6 +660,15 @@ spec:
660660
path: networkPolicies.ruleSet
661661
x-descriptors:
662662
- urn:alm:descriptor:com.tectonic.ui:text
663+
- description: PatternIngester defines the pattern-ingester configuration.
664+
displayName: Pattern-Ingester
665+
path: patternIngesterSpec
666+
- description: Enabled defines a flag to enable/disable the pattern-ingester
667+
component
668+
displayName: Enable
669+
path: patternIngesterSpec.enabled
670+
x-descriptors:
671+
- urn:alm:descriptor:com.tectonic.ui:booleanSwitch
663672
- description: Proxy defines the spec for the object proxy to configure cluster
664673
proxy information.
665674
displayName: Cluster Proxy
@@ -860,6 +869,21 @@ spec:
860869
path: template.ingester.replicas
861870
x-descriptors:
862871
- urn:alm:descriptor:com.tectonic.ui:hidden
872+
- description: PatternIngester defines the pattern-ingester component spec.
873+
displayName: Pattern-Ingester pods
874+
path: template.patternIngester
875+
- description: |-
876+
PodAntiAffinity defines the pod anti affinity scheduling rules to schedule pods
877+
of a component.
878+
displayName: PodAntiAffinity
879+
path: template.patternIngester.podAntiAffinity
880+
x-descriptors:
881+
- urn:alm:descriptor:com.tectonic.ui:podAntiAffinity
882+
- description: Replicas defines the number of replica pods of the component.
883+
displayName: Replicas
884+
path: template.patternIngester.replicas
885+
x-descriptors:
886+
- urn:alm:descriptor:com.tectonic.ui:hidden
863887
- description: Querier defines the querier component spec.
864888
displayName: Querier pods
865889
path: template.querier

0 commit comments

Comments
 (0)