You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: introduce logLevel setting to control verbosity (#536)
This commit adds a new `logLevel` field to the plugin configuration,
allowing users to select the desired log verbosity for the instances
(e.g. error, warning, info, debug, trace).
Closes#514
Signed-off-by: Armando Ruocco <[email protected]>
Signed-off-by: Gabriele Bartolini <[email protected]>
Co-authored-by: Gabriele Bartolini <[email protected]>
Copy file name to clipboardExpand all lines: api/v1/objectstore_types.go
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -41,8 +41,15 @@ type InstanceSidecarConfiguration struct {
41
41
// AdditionalContainerArgs is an optional list of command-line arguments
42
42
// to be passed to the sidecar container when it starts.
43
43
// The provided arguments are appended to the container’s default arguments.
44
+
// +kubebuilder:validation:XValidation:rule="!self.exists(a, a.startsWith('--log-level'))",reason="FieldValueForbidden",message="do not set --log-level in additionalContainerArgs; use spec.instanceSidecarConfiguration.logLevel"
Copy file name to clipboardExpand all lines: web/docs/plugin-barman-cloud.v1.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,7 @@ _Appears in:_
30
30
|`retentionPolicyIntervalSeconds`_integer_| The retentionCheckInterval defines the frequency at which the<br />system checks and enforces retention policies. || 1800 ||
31
31
|`resources`_[ResourceRequirements](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.32/#resourcerequirements-v1-core)_| Resources define cpu/memory requests and limits for the sidecar that runs in the instance pods. ||||
32
32
|`additionalContainerArgs`_string array_| AdditionalContainerArgs is an optional list of command-line arguments<br />to be passed to the sidecar container when it starts.<br />The provided arguments are appended to the container’s default arguments. ||||
33
+
|`logLevel`_string_| The log level for PostgreSQL instances. Valid values are: `error`, `warning`, `info` (default), `debug`, `trace`|| info | Enum: [error warning info debug trace] <br /> |
0 commit comments