-
Notifications
You must be signed in to change notification settings - Fork 0
/
git_repo_volume_source.cr
39 lines (33 loc) · 1.84 KB
/
git_repo_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
# THIS FILE WAS AUTO GENERATED FROM THE K8S SWAGGER SPEC
require "yaml"
require "json"
module K8S
# Represents a volume that is populated with the contents of a git repository. Git repo volumes do not support ownership management. Git repo volumes support SELinux relabeling.
#
# DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container.
@[::K8S::Properties(
directory: {type: String, nilable: true, key: "directory", getter: false, setter: false},
repository: {type: String, nilable: false, key: "repository", getter: false, setter: false},
revision: {type: String, nilable: true, key: "revision", getter: false, setter: false},
)]
class Api::Core::V1::GitRepoVolumeSource
include ::JSON::Serializable
include ::JSON::Serializable::Unmapped
include ::YAML::Serializable
include ::YAML::Serializable::Unmapped
# Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name.
@[::JSON::Field(key: "directory", emit_null: false)]
@[::YAML::Field(key: "directory", emit_null: false)]
property directory : String | Nil
# Repository URL
@[::JSON::Field(key: "repository", emit_null: true)]
@[::YAML::Field(key: "repository", emit_null: true)]
property repository : String
# Commit hash for the specified revision.
@[::JSON::Field(key: "revision", emit_null: false)]
@[::YAML::Field(key: "revision", emit_null: false)]
property revision : String | Nil
def initialize(*, @repository : String, @directory : String | Nil = nil, @revision : String | Nil = nil)
end
end
end