diff --git a/roles/kubernetes-apps/csi_driver/csi_crd/templates/volumesnapshotclasses.yml.j2 b/roles/kubernetes-apps/csi_driver/csi_crd/templates/volumesnapshotclasses.yml.j2
index 09b1e5fdcea499040cbabfe7309d4b72c7cf11fd..1b0853d98164a70dccc8fc414c573a5a12a8e1d6 100644
--- a/roles/kubernetes-apps/csi_driver/csi_crd/templates/volumesnapshotclasses.yml.j2
+++ b/roles/kubernetes-apps/csi_driver/csi_crd/templates/volumesnapshotclasses.yml.j2
@@ -62,7 +62,7 @@ spec:
     storage: false
 {% else %}
     storage: true
-{% end %}
+{% endif %}
     subresources: {}
   - additionalPrinterColumns:
     - jsonPath: .driver
@@ -82,7 +82,7 @@ spec:
     deprecated: true
     # This overrides the default warning returned to clients making v1beta1 API requests.
     deprecationWarning: "snapshot.storage.k8s.io/v1beta1 VolumeSnapshotClass is deprecated; use snapshot.storage.k8s.io/v1 VolumeSnapshotClass"
-{% end %}
+{% endif %}
     schema:
       openAPIV3Schema:
         description: VolumeSnapshotClass specifies parameters that a underlying storage system uses when creating a volume snapshot. A specific VolumeSnapshotClass is used by specifying its name in a VolumeSnapshot object. VolumeSnapshotClasses are non-namespaced
@@ -116,7 +116,7 @@ spec:
     storage: true
 {% else %}
     storage: false
-{% end %}
+{% endif %}
     subresources: {}
 status:
   acceptedNames:
diff --git a/roles/kubernetes-apps/csi_driver/csi_crd/templates/volumesnapshotcontents.yml.j2 b/roles/kubernetes-apps/csi_driver/csi_crd/templates/volumesnapshotcontents.yml.j2
index 86411a7e7ed4c4ee9266268b356204646e8b0d0b..c1cd7ff4ae1e5493bf7f874f28f6376b05bc0954 100644
--- a/roles/kubernetes-apps/csi_driver/csi_crd/templates/volumesnapshotcontents.yml.j2
+++ b/roles/kubernetes-apps/csi_driver/csi_crd/templates/volumesnapshotcontents.yml.j2
@@ -47,7 +47,7 @@ spec:
       jsonPath: .spec.volumeSnapshotRef.namespace
       name: VolumeSnapshotNamespace
       type: string
-{% end %}
+{% endif %}
     - jsonPath: .metadata.creationTimestamp
       name: Age
       type: date
@@ -159,7 +159,7 @@ spec:
     storage: false
 {% else %}
     storage: true
-{% end %}
+{% endif %}
     subresources:
       status: {}
   - additionalPrinterColumns:
@@ -192,7 +192,7 @@ spec:
       jsonPath: .spec.volumeSnapshotRef.namespace
       name: VolumeSnapshotNamespace
       type: string
-{% end %}
+{% endif %}
     - jsonPath: .metadata.creationTimestamp
       name: Age
       type: date
@@ -306,7 +306,7 @@ spec:
     storage: true
 {% else %}
     storage: false
-{% end %}
+{% endif %}
     subresources:
       status: {}
 status:
diff --git a/roles/kubernetes-apps/csi_driver/csi_crd/templates/volumesnapshots.yml.j2 b/roles/kubernetes-apps/csi_driver/csi_crd/templates/volumesnapshots.yml.j2
index c53741604c731f281455cfdd857abd76eb8ed3e5..33fa9f7da6b6cc9f05ccd40eb128001c22c39188 100644
--- a/roles/kubernetes-apps/csi_driver/csi_crd/templates/volumesnapshots.yml.j2
+++ b/roles/kubernetes-apps/csi_driver/csi_crd/templates/volumesnapshots.yml.j2
@@ -120,7 +120,7 @@ spec:
     storage: false
 {% else %}
     storage: true
-{% end %}
+{% endif %}
     subresources:
       status: {}
   - additionalPrinterColumns:
@@ -162,7 +162,7 @@ spec:
     deprecated: true
     # This overrides the default warning returned to clients making v1beta1 API requests.
     deprecationWarning: "snapshot.storage.k8s.io/v1beta1 VolumeSnapshot is deprecated; use snapshot.storage.k8s.io/v1 VolumeSnapshot"
-{% end %}
+{% endif %}
     schema:
       openAPIV3Schema:
         description: VolumeSnapshot is a user's request for either creating a point-in-time snapshot of a persistent volume, or binding to a pre-existing snapshot.
@@ -230,7 +230,7 @@ spec:
     storage: true
 {% else %}
     storage: false
-{% end %}
+{% endif %}
     subresources:
       status: {}
 status: