Skip to content

Commit

Permalink
Keep replicas field in the values.yaml
Browse files Browse the repository at this point in the history
Signed-off-by: karan k <karan.k@oracle.com>
  • Loading branch information
karan56625 committed Jul 20, 2023
1 parent 3ab9bf5 commit 3896ce2
Show file tree
Hide file tree
Showing 13 changed files with 1,497 additions and 1,559 deletions.
32 changes: 13 additions & 19 deletions apis/fluentd/v1alpha1/fluentd_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ type FluentdSpec struct {
// Select cluster output plugins used to send all logs that did not match any route to the matching outputs
DefaultOutputSelector *metav1.LabelSelector `json:"defaultOutputSelector,omitempty"`
// By default will build the related service according to the globalinputs definition.
DisableService bool `json:"disableService,omitempty"`
DaemonSetSpec DaemonSetSpec `json:"daemonSetSpec,omitempty"`
StatefulSetSpec StatefulSetSpec `json:"statefulSetSpec,omitempty"`
DisableService bool `json:"disableService,omitempty"`
// Numbers of the Fluentd instance
Replicas *int32 `json:"replicas,omitempty"`
// Numbers of the workers in Fluentd instance
Workers *int32 `json:"workers,omitempty"`
// Global logging verbosity
Expand Down Expand Up @@ -87,34 +87,28 @@ type FluentdSpec struct {
Volumes []corev1.Volume `json:"volumes,omitempty"`
// Pod volumes to mount into the container's filesystem. Cannot be updated.
VolumeMounts []corev1.VolumeMount `json:"volumeMounts,omitempty"`
// volumeClaimTemplates is a list of claims that pods are allowed to reference.
// The StatefulSet controller is responsible 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.
VolumeClaimTemplates []corev1.PersistentVolumeClaim `json:"volumeClaimTemplates,omitempty"`
// Service represents configurations on the fluentd service.
Service FluentDService `json:"service,omitempty"`
// PodSecurityContext represents the security context for the fluentd pods.
SecurityContext *corev1.PodSecurityContext `json:"securityContext,omitempty"`
// SchedulerName represents the desired scheduler for fluentd pods.
SchedulerName string `json:"schedulerName,omitempty"`
// Mode to determine whether to run Fluentd as collector or agent.
// +kubebuilder:validation:Enum:=collector;agent
// +kubebuilder:default:=collector
Mode string `json:"mode,omitempty"`
// 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.
PositionDB corev1.VolumeSource `json:"positionDB,omitempty"`
}

// DaemonSetSpec md
type DaemonSetSpec struct {
Enable bool `json:"enable,omitempty"`
}

type StatefulSetSpec struct {
// Numbers of the Fluentd instance
Replicas *int32 `json:"replicas,omitempty"`
// volumeClaimTemplates is a list of claims that pods are allowed to reference.
// The StatefulSet controller is responsible 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.
VolumeClaimTemplates []corev1.PersistentVolumeClaim `json:"volumeClaimTemplates,omitempty"`
}

// FluentDService the service of the FluentD
type FluentDService struct {
// Name is the name of the FluentD service.
Expand Down
56 changes: 12 additions & 44 deletions apis/fluentd/v1alpha1/zz_generated.deepcopy.go

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

Loading

0 comments on commit 3896ce2

Please sign in to comment.