Dont generate claim for host path volumes (#54)

👏
This commit is contained in:
Marcel Lambacher
2022-09-12 08:52:36 +02:00
committed by GitHub
parent 35cb630582
commit 51ba51320a
2 changed files with 11 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{{- define "common.pvc.tpl" -}}
{{- range .Values.volumes }}
{{- if not .existingClaim }}
{{- if not (or .existingClaim .hostPath) }}
{{- $robustName := include "common.robustName" $.Release.Name }}
---
apiVersion: v1
+10
View File
@@ -36,3 +36,13 @@ tests:
asserts:
- hasDocuments:
count: 0
- it: Should not generate a claim when using host path
set:
volumes:
- name: data
path: /var/lib/1clickinfra/data
hostPath:
path: /data/test
asserts:
- hasDocuments:
count: 0