Setting a log level for the External Secrets Operator for Red Hat OpenShift operand

You can troubleshoot common issues, such as secret synchronization failures, provider authentication errors, or data formatting problems, by configuring the log verbosity for the core controller.

Prerequisites
  • You have access to the cluster with cluster-admin privileges.

  • You have created the ExternalSecretsConfig custom resource.

Procedure
  1. Edit the ExternalSecretsConfig CR by running the following command:

    $ oc edit externalsecretsconfigs.operator.openshift.io cluster
  2. Set the log level value by editing the spec.appConfig.logLevel section:

    apiVersion: operator.openshift.io/v1alpha1
    kind: ExternalSecretsConfig
    ...
    spec:
      appConfig:
        logLevel: <log_level>

    where:

    log_level

    Supports the value range of 1-5. The log level gets mapped to the following operand support levels:

    • 1 - warnings

    • 2 - error logs

    • 3 - info logs

    • 4 and 5 - debug logs

  3. Save your changes and exit the editor.