You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2023/02/20 22:57:44 UTC
[airflow] branch main updated: Adding possibility for annotations in logs pvc (#29270)
This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 5835b08e8b Adding possibility for annotations in logs pvc (#29270)
5835b08e8b is described below
commit 5835b08e8bc3e11f4f98745266d10bbae510b258
Author: Amogh Desai <am...@gmail.com>
AuthorDate: Tue Feb 21 04:27:35 2023 +0530
Adding possibility for annotations in logs pvc (#29270)
* Adding possibility for annotations in logs pvc
Co-authored-by: Amogh <ad...@cloudera.com>
---
chart/templates/logs-persistent-volume-claim.yaml | 4 ++++
chart/values.schema.json | 8 ++++++++
chart/values.yaml | 2 ++
3 files changed, 14 insertions(+)
diff --git a/chart/templates/logs-persistent-volume-claim.yaml b/chart/templates/logs-persistent-volume-claim.yaml
index deeaa2ef97..07374c1fd5 100644
--- a/chart/templates/logs-persistent-volume-claim.yaml
+++ b/chart/templates/logs-persistent-volume-claim.yaml
@@ -29,6 +29,10 @@ metadata:
{{- with .Values.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
+ {{- with .Values.logs.persistence.annotations }}
+ annotations:
+ {{- toYaml . | nindent 4 }}
+ {{- end }}
spec:
accessModes: ["ReadWriteMany"]
resources:
diff --git a/chart/values.schema.json b/chart/values.schema.json
index db6d3b3fa9..12ab8a99b0 100644
--- a/chart/values.schema.json
+++ b/chart/values.schema.json
@@ -5491,6 +5491,14 @@
],
"default": null
},
+ "annotations": {
+ "description": "Annotations to add to logs PVC",
+ "type": "object",
+ "default": {},
+ "additionalProperties": {
+ "type": "string"
+ }
+ },
"existingClaim": {
"description": "The name of an existing PVC to use.",
"type": [
diff --git a/chart/values.yaml b/chart/values.yaml
index ef59660773..b0c06bc086 100644
--- a/chart/values.yaml
+++ b/chart/values.yaml
@@ -1944,6 +1944,8 @@ logs:
enabled: false
# Volume size for logs
size: 100Gi
+ # Annotations for the logs PVC
+ annotations: {}
# If using a custom storageClass, pass name here
storageClassName:
## the name of an existing PVC to use