Skip to content

Commit

Permalink
chore: remove unnecessary deepcopy, since we are only referencing pdb…
Browse files Browse the repository at this point in the history
… values

Signed-off-by: Peter Wilcsinszky <[email protected]>
  • Loading branch information
pepov committed Jan 16, 2024
1 parent 3f0438d commit db2ff29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/resources/fluentd/pdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (

func (r *Reconciler) pdb() (runtime.Object, reconciler.DesiredState, error) {
if r.Logging.Spec.FluentdSpec.Pdb != nil {
pdbSpec := r.Logging.DeepCopy().Spec.FluentdSpec.Pdb
pdbSpec := r.Logging.Spec.FluentdSpec.Pdb

return &policyv1.PodDisruptionBudget{
ObjectMeta: r.FluentdObjectMeta(PodDisruptionBudgetName, ComponentFluentd),
Expand Down

0 comments on commit db2ff29

Please sign in to comment.