-
Notifications
You must be signed in to change notification settings - Fork 0
/
glusterfs_persistent_volume_source.cr
41 lines (34 loc) · 2.45 KB
/
glusterfs_persistent_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
30
31
32
33
34
35
36
37
38
39
40
41
# THIS FILE WAS AUTO GENERATED FROM THE K8S SWAGGER SPEC
require "yaml"
require "json"
module K8S
# Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.
@[::K8S::Properties(
endpoints: {type: String, nilable: false, key: "endpoints", getter: false, setter: false},
endpoints_namespace: {type: String, nilable: true, key: "endpointsNamespace", getter: false, setter: false},
path: {type: String, nilable: false, key: "path", getter: false, setter: false},
read_only: {type: Bool, nilable: true, key: "readOnly", getter: false, setter: false},
)]
class Api::Core::V1::GlusterfsPersistentVolumeSource
include ::JSON::Serializable
include ::YAML::Serializable
# EndpointsName is the endpoint name that details Glusterfs topology. More info: [https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod](https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod)
@[::JSON::Field(key: "endpoints", emit_null: true)]
@[::YAML::Field(key: "endpoints", emit_null: true)]
property endpoints : String
# EndpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: [https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod](https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod)
@[::JSON::Field(key: "endpointsNamespace", emit_null: false)]
@[::YAML::Field(key: "endpointsNamespace", emit_null: false)]
property endpoints_namespace : String | Nil
# Path is the Glusterfs volume path. More info: [https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod](https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod)
@[::JSON::Field(key: "path", emit_null: true)]
@[::YAML::Field(key: "path", emit_null: true)]
property path : String
# ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: [https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod](https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod)
@[::JSON::Field(key: "readOnly", emit_null: false)]
@[::YAML::Field(key: "readOnly", emit_null: false)]
property read_only : Bool | Nil
def initialize(*, @endpoints : String, @path : String, @endpoints_namespace : String | Nil = nil, @read_only : Bool | Nil = nil)
end
end
end