-
Notifications
You must be signed in to change notification settings - Fork 0
/
glusterfs_volume_source.cr
35 lines (29 loc) · 1.8 KB
/
glusterfs_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
# 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},
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::GlusterfsVolumeSource
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
# 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, @read_only : Bool | Nil = nil)
end
end
end