@@ -1,6 +1,6 @@
|
|||||||
{{- define "common.pvc.tpl" -}}
|
{{- define "common.pvc.tpl" -}}
|
||||||
{{- range .Values.volumes }}
|
{{- range .Values.volumes }}
|
||||||
{{- if not .existingClaim }}
|
{{- if not (or .existingClaim .hostPath) }}
|
||||||
{{- $robustName := include "common.robustName" $.Release.Name }}
|
{{- $robustName := include "common.robustName" $.Release.Name }}
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
|
|||||||
@@ -36,3 +36,13 @@ tests:
|
|||||||
asserts:
|
asserts:
|
||||||
- hasDocuments:
|
- hasDocuments:
|
||||||
count: 0
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user