From c822cfae774061308469302181c24fa5bd1c325f Mon Sep 17 00:00:00 2001 From: Rick Haan Date: Sun, 1 Dec 2019 23:59:15 +0100 Subject: [PATCH] [stable/velero] Add logLevel and logFormat Velero (#19103) Signed-off-by: Rick Haan --- stable/velero/Chart.yaml | 2 +- stable/velero/README.md | 2 ++ stable/velero/templates/deployment.yaml | 6 ++++++ stable/velero/values.yaml | 6 ++++++ 4 files changed, 15 insertions(+), 1 deletion(-) diff --git a/stable/velero/Chart.yaml b/stable/velero/Chart.yaml index 39447f5a76..f651c6c0ed 100644 --- a/stable/velero/Chart.yaml +++ b/stable/velero/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v1 appVersion: 1.1.0 description: A Helm chart for velero name: velero -version: 2.4.0 +version: 2.5.0 home: https://github.com/vmware-tanzu/velero icon: https://cdn-images-1.medium.com/max/1600/1*-9mb3AKnKdcL_QD3CMnthQ.png sources: diff --git a/stable/velero/README.md b/stable/velero/README.md index 2a28d2c5ce..b43e562fa6 100644 --- a/stable/velero/README.md +++ b/stable/velero/README.md @@ -91,6 +91,8 @@ Parameter | Description | Default `configuration.volumeSnapshotLocation.config.resourceGroup` | The name of the resource group where volume snapshots should be stored, if different from the cluster’s resource group. (Azure only) | `configuration.volumeSnapshotLocation.config.project` | The project ID where snapshots should be stored, if different than the project that your IAM account is in. (GCP only) | `configuration.volumeSnapshotLocation.config.snapshotLocation` | The location where the snapshots will be stored. (GCP only) | +`configuration.logLevel` | Set log-level for Velero pod. Default: info. Other options: debug, warning, error, fatal, panic. | +`configuration.logFormat` | Set log-format for Velero pod. Default: text. Other option: json. | `credentials.existingSecret` | If specified and `useSecret` is `true`, uses an existing secret with this name instead of creating one | `` `credentials.useSecret` | Whether a secret should be used. Set this to `false` when using `kube2iam` | `true` `credentials.secretContents` | Contents for the credentials secret | `{}` diff --git a/stable/velero/templates/deployment.yaml b/stable/velero/templates/deployment.yaml index 138607c53d..2e56b28f3e 100644 --- a/stable/velero/templates/deployment.yaml +++ b/stable/velero/templates/deployment.yaml @@ -63,6 +63,12 @@ spec: {{- with .restoreResourcePriorities }} - --restore-resource-priorities={{ . }} {{- end }} + {{- with .logLevel }} + - --log-level={{ . }} + {{- end }} + {{- with .logFormat }} + - --log-format={{ . }} + {{- end }} {{- end }} {{- if eq $provider "azure" }} envFrom: diff --git a/stable/velero/values.yaml b/stable/velero/values.yaml index 5c6a5a1499..e535ae782f 100644 --- a/stable/velero/values.yaml +++ b/stable/velero/values.yaml @@ -123,6 +123,12 @@ configuration: # additional key/value pairs to be used as environment variables such as "AWS_CLUSTER_NAME: 'yourcluster.domain.tld'" extraEnvVars: {} + # Set log-level for Velero pod. Default: info. Other options: debug, warning, error, fatal, panic. + logLevel: + + # Set log-format for Velero pod. Default: text. Other option: json. + logFormat: + ## ## End of backup/snapshot location settings. ##