-
Notifications
You must be signed in to change notification settings - Fork 0
/
env_from_source.cr
35 lines (29 loc) · 1.46 KB
/
env_from_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
# EnvFromSource represents the source of a set of ConfigMaps
@[::K8S::Properties(
config_map_ref: {type: Api::Core::V1::ConfigMapEnvSource, nilable: true, key: "configMapRef", getter: false, setter: false},
prefix: {type: String, nilable: true, key: "prefix", getter: false, setter: false},
secret_ref: {type: Api::Core::V1::SecretEnvSource, nilable: true, key: "secretRef", getter: false, setter: false},
)]
class Api::Core::V1::EnvFromSource
include ::JSON::Serializable
include ::YAML::Serializable
# The ConfigMap to select from
@[::JSON::Field(key: "configMapRef", emit_null: false)]
@[::YAML::Field(key: "configMapRef", emit_null: false)]
property config_map_ref : Api::Core::V1::ConfigMapEnvSource | Nil
# An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.
@[::JSON::Field(key: "prefix", emit_null: false)]
@[::YAML::Field(key: "prefix", emit_null: false)]
property prefix : String | Nil
# The Secret to select from
@[::JSON::Field(key: "secretRef", emit_null: false)]
@[::YAML::Field(key: "secretRef", emit_null: false)]
property secret_ref : Api::Core::V1::SecretEnvSource | Nil
def initialize(*, @config_map_ref : Api::Core::V1::ConfigMapEnvSource | Nil = nil, @prefix : String | Nil = nil, @secret_ref : Api::Core::V1::SecretEnvSource | Nil = nil)
end
end
end