Files
2026-10-18 14:50:07 -04:00

19 lines
631 B
Django/Jinja

# SPDX-License-Identifier: MIT-0
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ (the_button_name ~ '-data') | to_json }}
namespace: {{ the_button_namespace | to_json }}
labels:
app.kubernetes.io/name: the-button
app.kubernetes.io/instance: {{ the_button_name | to_json }}
app.kubernetes.io/managed-by: ansible
spec:
accessModes: {{ the_button_storage_access_modes | to_json }}
{% if the_button_storage_class is not none %}
storageClassName: {{ the_button_storage_class | to_json }}
{% endif %}
resources:
requests:
storage: {{ the_button_storage_size | to_json }}