Skip to content

[FEATURE]: Add flag for log level configuration #321

Description

@nantiferov

Pre-flight checks

  • I have searched existing issues and discussions and could not find a duplicate.

Problem / Use case

I noticed that valkey-operator v0.3.0 generates dozens of lines on every reconcile with DEBUG log level.

It happens couple of times per minute and pollutes logs quite a bit. I understand it's early stage of operator development and not a huge issue atm.

Proposed solution

Add new flag to cmd/main.go defining max log level of output. It will be also passed from Helm chart.

This way it will be possible to tune operator logging.

Scope of change

Small (small CRD field or controller behaviour tweak)

API / behaviour impact

  • This change is backwards-compatible with existing ValkeyCluster CRs.
  • This change introduces a breaking API change in v1alpha1.

Contribution

  • I would like to implement this feature myself.
  • I would like to help review or test this feature.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions