Skip to content

Commit

Permalink
comment on the property that is applicable only in collector mode
Browse files Browse the repository at this point in the history
  • Loading branch information
karan56625 committed Jul 24, 2023
1 parent 3896ce2 commit 0a86296
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 8 deletions.
3 changes: 3 additions & 0 deletions apis/fluentd/v1alpha1/fluentd_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ type FluentdSpec struct {
// By default will build the related service according to the globalinputs definition.
DisableService bool `json:"disableService,omitempty"`
// Numbers of the Fluentd instance
// Applicable when the mode is "collector", and will be ignored when the mode is "agent"
Replicas *int32 `json:"replicas,omitempty"`
// Numbers of the workers in Fluentd instance
Workers *int32 `json:"workers,omitempty"`
Expand Down Expand Up @@ -92,6 +93,7 @@ type FluentdSpec struct {
// claims in a way that maintains the identity of a pod. Every claim in
// this list must have at least one matching (by name) volumeMount in one
// container in the template.
// Applicable when the mode is "collector", and will be ignored when the mode is "agent"
VolumeClaimTemplates []corev1.PersistentVolumeClaim `json:"volumeClaimTemplates,omitempty"`
// Service represents configurations on the fluentd service.
Service FluentDService `json:"service,omitempty"`
Expand All @@ -106,6 +108,7 @@ type FluentdSpec struct {
// ContainerSecurityContext represents the security context for the fluentd container.
ContainerSecurityContext *corev1.SecurityContext `json:"containerSecurityContext,omitempty"`
// Storage for position db. You will use it if tail input is enabled.
// Applicable when the mode is "collector", and will be ignored when the mode is "agent"
PositionDB corev1.VolumeSource `json:"positionDB,omitempty"`
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2418,7 +2418,8 @@ spec:
type: object
positionDB:
description: Storage for position db. You will use it if tail input
is enabled.
is enabled. Applicable when the mode is "collector", and will be
ignored when the mode is "agent"
properties:
awsElasticBlockStore:
description: 'awsElasticBlockStore represents an AWS Disk resource
Expand Down Expand Up @@ -4013,7 +4014,8 @@ spec:
type: object
type: array
replicas:
description: Numbers of the Fluentd instance
description: Numbers of the Fluentd instance Applicable when the mode
is "collector", and will be ignored when the mode is "agent"
format: int32
type: integer
resources:
Expand Down Expand Up @@ -4307,6 +4309,8 @@ spec:
for mapping network identities to claims in a way that maintains
the identity of a pod. Every claim in this list must have at least
one matching (by name) volumeMount in one container in the template.
Applicable when the mode is "collector", and will be ignored when
the mode is "agent"
items:
description: PersistentVolumeClaim is a user's request for and claim
to a persistent volume
Expand Down
2 changes: 2 additions & 0 deletions charts/fluent-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,8 @@ fluentd:
image:
repository: "kubesphere/fluentd"
tag: "v1.15.3"
# Numbers of the Fluentd instance
# Applicable when the mode is "collector", and will be ignored when the mode is "agent"
replicas: 1
forward:
port: 24224
Expand Down
8 changes: 6 additions & 2 deletions config/crd/bases/fluentd.fluent.io_fluentds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2418,7 +2418,8 @@ spec:
type: object
positionDB:
description: Storage for position db. You will use it if tail input
is enabled.
is enabled. Applicable when the mode is "collector", and will be
ignored when the mode is "agent"
properties:
awsElasticBlockStore:
description: 'awsElasticBlockStore represents an AWS Disk resource
Expand Down Expand Up @@ -4013,7 +4014,8 @@ spec:
type: object
type: array
replicas:
description: Numbers of the Fluentd instance
description: Numbers of the Fluentd instance Applicable when the mode
is "collector", and will be ignored when the mode is "agent"
format: int32
type: integer
resources:
Expand Down Expand Up @@ -4307,6 +4309,8 @@ spec:
for mapping network identities to claims in a way that maintains
the identity of a pod. Every claim in this list must have at least
one matching (by name) volumeMount in one container in the template.
Applicable when the mode is "collector", and will be ignored when
the mode is "agent"
items:
description: PersistentVolumeClaim is a user's request for and claim
to a persistent volume
Expand Down
8 changes: 6 additions & 2 deletions manifests/setup/fluent-operator-crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20570,7 +20570,8 @@ spec:
type: object
positionDB:
description: Storage for position db. You will use it if tail input
is enabled.
is enabled. Applicable when the mode is "collector", and will be
ignored when the mode is "agent"
properties:
awsElasticBlockStore:
description: 'awsElasticBlockStore represents an AWS Disk resource
Expand Down Expand Up @@ -22165,7 +22166,8 @@ spec:
type: object
type: array
replicas:
description: Numbers of the Fluentd instance
description: Numbers of the Fluentd instance Applicable when the mode
is "collector", and will be ignored when the mode is "agent"
format: int32
type: integer
resources:
Expand Down Expand Up @@ -22459,6 +22461,8 @@ spec:
for mapping network identities to claims in a way that maintains
the identity of a pod. Every claim in this list must have at least
one matching (by name) volumeMount in one container in the template.
Applicable when the mode is "collector", and will be ignored when
the mode is "agent"
items:
description: PersistentVolumeClaim is a user's request for and claim
to a persistent volume
Expand Down
8 changes: 6 additions & 2 deletions manifests/setup/setup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20570,7 +20570,8 @@ spec:
type: object
positionDB:
description: Storage for position db. You will use it if tail input
is enabled.
is enabled. Applicable when the mode is "collector", and will be
ignored when the mode is "agent"
properties:
awsElasticBlockStore:
description: 'awsElasticBlockStore represents an AWS Disk resource
Expand Down Expand Up @@ -22165,7 +22166,8 @@ spec:
type: object
type: array
replicas:
description: Numbers of the Fluentd instance
description: Numbers of the Fluentd instance Applicable when the mode
is "collector", and will be ignored when the mode is "agent"
format: int32
type: integer
resources:
Expand Down Expand Up @@ -22459,6 +22461,8 @@ spec:
for mapping network identities to claims in a way that maintains
the identity of a pod. Every claim in this list must have at least
one matching (by name) volumeMount in one container in the template.
Applicable when the mode is "collector", and will be ignored when
the mode is "agent"
items:
description: PersistentVolumeClaim is a user's request for and claim
to a persistent volume
Expand Down

0 comments on commit 0a86296

Please sign in to comment.