Skip to content
This repository was archived by the owner on Feb 2, 2025. It is now read-only.

Commit bf7ba93

Browse files
committed
comment on the property that is applicable only in collector mode
Signed-off-by: karan k <karan.k@oracle.com>
1 parent 3896ce2 commit bf7ba93

File tree

6 files changed

+29
-8
lines changed

6 files changed

+29
-8
lines changed

apis/fluentd/v1alpha1/fluentd_types.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ type FluentdSpec struct {
4343
// By default will build the related service according to the globalinputs definition.
4444
DisableService bool `json:"disableService,omitempty"`
4545
// Numbers of the Fluentd instance
46+
// Applicable when the mode is "collector", and will be ignored when the mode is "agent"
4647
Replicas *int32 `json:"replicas,omitempty"`
4748
// Numbers of the workers in Fluentd instance
4849
Workers *int32 `json:"workers,omitempty"`
@@ -92,6 +93,7 @@ type FluentdSpec struct {
9293
// claims in a way that maintains the identity of a pod. Every claim in
9394
// this list must have at least one matching (by name) volumeMount in one
9495
// container in the template.
96+
// Applicable when the mode is "collector", and will be ignored when the mode is "agent"
9597
VolumeClaimTemplates []corev1.PersistentVolumeClaim `json:"volumeClaimTemplates,omitempty"`
9698
// Service represents configurations on the fluentd service.
9799
Service FluentDService `json:"service,omitempty"`
@@ -106,6 +108,7 @@ type FluentdSpec struct {
106108
// ContainerSecurityContext represents the security context for the fluentd container.
107109
ContainerSecurityContext *corev1.SecurityContext `json:"containerSecurityContext,omitempty"`
108110
// Storage for position db. You will use it if tail input is enabled.
111+
// Applicable when the mode is "collector", and will be ignored when the mode is "agent"
109112
PositionDB corev1.VolumeSource `json:"positionDB,omitempty"`
110113
}
111114

charts/fluent-operator/charts/fluentd-crds/crds/fluentd.fluent.io_fluentds.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2418,7 +2418,8 @@ spec:
24182418
type: object
24192419
positionDB:
24202420
description: Storage for position db. You will use it if tail input
2421-
is enabled.
2421+
is enabled. Applicable when the mode is "collector", and will be
2422+
ignored when the mode is "agent"
24222423
properties:
24232424
awsElasticBlockStore:
24242425
description: 'awsElasticBlockStore represents an AWS Disk resource
@@ -4013,7 +4014,8 @@ spec:
40134014
type: object
40144015
type: array
40154016
replicas:
4016-
description: Numbers of the Fluentd instance
4017+
description: Numbers of the Fluentd instance Applicable when the mode
4018+
is "collector", and will be ignored when the mode is "agent"
40174019
format: int32
40184020
type: integer
40194021
resources:
@@ -4307,6 +4309,8 @@ spec:
43074309
for mapping network identities to claims in a way that maintains
43084310
the identity of a pod. Every claim in this list must have at least
43094311
one matching (by name) volumeMount in one container in the template.
4312+
Applicable when the mode is "collector", and will be ignored when
4313+
the mode is "agent"
43104314
items:
43114315
description: PersistentVolumeClaim is a user's request for and claim
43124316
to a persistent volume

charts/fluent-operator/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,8 @@ fluentd:
273273
image:
274274
repository: "kubesphere/fluentd"
275275
tag: "v1.15.3"
276+
# Numbers of the Fluentd instance
277+
# Applicable when the mode is "collector", and will be ignored when the mode is "agent"
276278
replicas: 1
277279
forward:
278280
port: 24224

config/crd/bases/fluentd.fluent.io_fluentds.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2418,7 +2418,8 @@ spec:
24182418
type: object
24192419
positionDB:
24202420
description: Storage for position db. You will use it if tail input
2421-
is enabled.
2421+
is enabled. Applicable when the mode is "collector", and will be
2422+
ignored when the mode is "agent"
24222423
properties:
24232424
awsElasticBlockStore:
24242425
description: 'awsElasticBlockStore represents an AWS Disk resource
@@ -4013,7 +4014,8 @@ spec:
40134014
type: object
40144015
type: array
40154016
replicas:
4016-
description: Numbers of the Fluentd instance
4017+
description: Numbers of the Fluentd instance Applicable when the mode
4018+
is "collector", and will be ignored when the mode is "agent"
40174019
format: int32
40184020
type: integer
40194021
resources:
@@ -4307,6 +4309,8 @@ spec:
43074309
for mapping network identities to claims in a way that maintains
43084310
the identity of a pod. Every claim in this list must have at least
43094311
one matching (by name) volumeMount in one container in the template.
4312+
Applicable when the mode is "collector", and will be ignored when
4313+
the mode is "agent"
43104314
items:
43114315
description: PersistentVolumeClaim is a user's request for and claim
43124316
to a persistent volume

manifests/setup/fluent-operator-crd.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20570,7 +20570,8 @@ spec:
2057020570
type: object
2057120571
positionDB:
2057220572
description: Storage for position db. You will use it if tail input
20573-
is enabled.
20573+
is enabled. Applicable when the mode is "collector", and will be
20574+
ignored when the mode is "agent"
2057420575
properties:
2057520576
awsElasticBlockStore:
2057620577
description: 'awsElasticBlockStore represents an AWS Disk resource
@@ -22165,7 +22166,8 @@ spec:
2216522166
type: object
2216622167
type: array
2216722168
replicas:
22168-
description: Numbers of the Fluentd instance
22169+
description: Numbers of the Fluentd instance Applicable when the mode
22170+
is "collector", and will be ignored when the mode is "agent"
2216922171
format: int32
2217022172
type: integer
2217122173
resources:
@@ -22459,6 +22461,8 @@ spec:
2245922461
for mapping network identities to claims in a way that maintains
2246022462
the identity of a pod. Every claim in this list must have at least
2246122463
one matching (by name) volumeMount in one container in the template.
22464+
Applicable when the mode is "collector", and will be ignored when
22465+
the mode is "agent"
2246222466
items:
2246322467
description: PersistentVolumeClaim is a user's request for and claim
2246422468
to a persistent volume

manifests/setup/setup.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20570,7 +20570,8 @@ spec:
2057020570
type: object
2057120571
positionDB:
2057220572
description: Storage for position db. You will use it if tail input
20573-
is enabled.
20573+
is enabled. Applicable when the mode is "collector", and will be
20574+
ignored when the mode is "agent"
2057420575
properties:
2057520576
awsElasticBlockStore:
2057620577
description: 'awsElasticBlockStore represents an AWS Disk resource
@@ -22165,7 +22166,8 @@ spec:
2216522166
type: object
2216622167
type: array
2216722168
replicas:
22168-
description: Numbers of the Fluentd instance
22169+
description: Numbers of the Fluentd instance Applicable when the mode
22170+
is "collector", and will be ignored when the mode is "agent"
2216922171
format: int32
2217022172
type: integer
2217122173
resources:
@@ -22459,6 +22461,8 @@ spec:
2245922461
for mapping network identities to claims in a way that maintains
2246022462
the identity of a pod. Every claim in this list must have at least
2246122463
one matching (by name) volumeMount in one container in the template.
22464+
Applicable when the mode is "collector", and will be ignored when
22465+
the mode is "agent"
2246222466
items:
2246322467
description: PersistentVolumeClaim is a user's request for and claim
2246422468
to a persistent volume

0 commit comments

Comments
 (0)