This is an automated email from the ASF dual-hosted git repository.
rom 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 015005c44d Consolidated fix for volumeClaimTemplates (apiVersion and
PVC) (#41771)
015005c44d is described below
commit 015005c44d3b2e97f5fb8f205978a47940b97b27
Author: darth-drew <[email protected]>
AuthorDate: Wed Aug 28 16:55:10 2024 -0400
Consolidated fix for volumeClaimTemplates (apiVersion and PVC) (#41771)
---
chart/templates/redis/redis-statefulset.yaml | 4 +++-
chart/templates/triggerer/triggerer-deployment.yaml | 4 +++-
chart/templates/workers/worker-deployment.yaml | 4 +++-
3 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/chart/templates/redis/redis-statefulset.yaml
b/chart/templates/redis/redis-statefulset.yaml
index 826ce764a6..95df10ccf2 100644
--- a/chart/templates/redis/redis-statefulset.yaml
+++ b/chart/templates/redis/redis-statefulset.yaml
@@ -121,7 +121,9 @@ spec:
claimName: {{ .Values.redis.persistence.existingClaim }}
{{- else }}
volumeClaimTemplates:
- - metadata:
+ - apiVersion: v1
+ kind: PersistentVolumeClaim
+ metadata:
name: redis-db
{{- if .Values.redis.persistence.annotations }}
annotations: {{- toYaml .Values.redis.persistence.annotations |
nindent 10 }}
diff --git a/chart/templates/triggerer/triggerer-deployment.yaml
b/chart/templates/triggerer/triggerer-deployment.yaml
index bc4a9a7d54..5218d6d0a6 100644
--- a/chart/templates/triggerer/triggerer-deployment.yaml
+++ b/chart/templates/triggerer/triggerer-deployment.yaml
@@ -298,7 +298,9 @@ spec:
emptyDir: {{- toYaml (default (dict) .Values.logs.emptyDirConfig) |
nindent 12 }}
{{- else }}
volumeClaimTemplates:
- - metadata:
+ - apiVersion: v1
+ kind: PersistentVolumeClaim
+ metadata:
name: logs
{{- if .Values.triggerer.persistence.annotations }}
annotations: {{- toYaml .Values.triggerer.persistence.annotations |
nindent 10 }}
diff --git a/chart/templates/workers/worker-deployment.yaml
b/chart/templates/workers/worker-deployment.yaml
index a32c86c289..23852d3427 100644
--- a/chart/templates/workers/worker-deployment.yaml
+++ b/chart/templates/workers/worker-deployment.yaml
@@ -428,7 +428,9 @@ spec:
emptyDir: {{- toYaml (default (dict) .Values.logs.emptyDirConfig) |
nindent 12 }}
{{- else }}
volumeClaimTemplates:
- - metadata:
+ - apiVersion: v1
+ kind: PersistentVolumeClaim
+ metadata:
name: logs
{{- if .Values.workers.persistence.annotations }}
annotations: {{- toYaml .Values.workers.persistence.annotations |
nindent 10 }}