-
Notifications
You must be signed in to change notification settings - Fork 0
/
persistent_volume_claim_volume_source.cr
29 lines (24 loc) · 1.45 KB
/
persistent_volume_claim_volume_source.cr
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# THIS FILE WAS AUTO GENERATED FROM THE K8S SWAGGER SPEC
require "yaml"
require "json"
module K8S
# PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace. This volume finds the bound PV and mounts that volume for the pod. A PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another type of volume that is owned by someone else (the system).
@[::K8S::Properties(
claim_name: {type: String, nilable: false, key: "claimName", getter: false, setter: false},
read_only: {type: Bool, nilable: true, key: "readOnly", getter: false, setter: false},
)]
class Api::Core::V1::PersistentVolumeClaimVolumeSource
include ::JSON::Serializable
include ::YAML::Serializable
# ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: [https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims](https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims)
@[::JSON::Field(key: "claimName", emit_null: true)]
@[::YAML::Field(key: "claimName", emit_null: true)]
property claim_name : String
# Will force the ReadOnly setting in VolumeMounts. Default false.
@[::JSON::Field(key: "readOnly", emit_null: false)]
@[::YAML::Field(key: "readOnly", emit_null: false)]
property read_only : Bool | Nil
def initialize(*, @claim_name : String, @read_only : Bool | Nil = nil)
end
end
end