lib/metatron/templates/persistent_volume_claim.rb in metatron-0.2.1 vs lib/metatron/templates/persistent_volume_claim.rb in metatron-0.2.2
- old
+ new
@@ -7,10 +7,13 @@
include Concerns::Annotated
include Concerns::Namespaced
attr_accessor :additional_labels, :storage_class, :access_modes, :storage
+ alias storageClassName storage_class
+ alias accessModes access_modes
+
def initialize(
name,
storage_class:,
storage:,
access_modes: ["ReadWriteOnce"]
@@ -29,11 +32,11 @@
metadata: {
name:,
labels: { "#{label_namespace}/name": name }.merge(additional_labels)
}.merge(formatted_annotations).merge(formatted_namespace),
spec: {
- accessModes: access_modes,
- storageClassName: storage_class,
+ accessModes:,
+ storageClassName:,
resources: {
requests: {
storage:
}
}