Skip to content

Commit

Permalink
Applied suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
petergvizd authored and ahma committed Jul 20, 2022
1 parent 5d5e282 commit e8e2f21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions pkg/resources/fluentd/appconfigmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,7 @@ func (r *Reconciler) newCheckPod(hashKey string) *corev1.Pod {
"--dry-run",
}

if len(r.Logging.Spec.FluentdSpec.ExtraArgs) != 0 {
containerArgs = append(containerArgs, r.Logging.Spec.FluentdSpec.ExtraArgs...)
}
containerArgs = append(containerArgs, r.Logging.Spec.FluentdSpec.ExtraArgs...)

pod := &corev1.Pod{
ObjectMeta: r.FluentdObjectMeta(fmt.Sprintf("fluentd-configcheck-%s", hashKey), ComponentConfigCheck),
Expand Down
4 changes: 1 addition & 3 deletions pkg/resources/fluentd/statefulset.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,7 @@ func fluentContainer(spec *v1beta1.FluentdSpec) corev1.Container {
}
}

if len(spec.ExtraArgs) != 0 {
container.Args = append(container.Args, spec.ExtraArgs...)
}
container.Args = append(container.Args, spec.ExtraArgs...)

return container
}
Expand Down

0 comments on commit e8e2f21

Please sign in to comment.