-
Notifications
You must be signed in to change notification settings - Fork 0
/
config_map_env_source.cr
31 lines (26 loc) · 1.22 KB
/
config_map_env_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
# THIS FILE WAS AUTO GENERATED FROM THE K8S SWAGGER SPEC
require "yaml"
require "json"
module K8S
# ConfigMapEnvSource selects a ConfigMap to populate the environment variables with.
#
# The contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables.
@[::K8S::Properties(
name: {type: String, nilable: true, key: "name", getter: false, setter: false},
optional: {type: Bool, nilable: true, key: "optional", getter: false, setter: false},
)]
class Api::Core::V1::ConfigMapEnvSource
include ::JSON::Serializable
include ::YAML::Serializable
# Name of the referent. More info: [https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names](https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names)
@[::JSON::Field(key: "name", emit_null: false)]
@[::YAML::Field(key: "name", emit_null: false)]
property name : String | Nil
# Specify whether the ConfigMap must be defined
@[::JSON::Field(key: "optional", emit_null: false)]
@[::YAML::Field(key: "optional", emit_null: false)]
property optional : Bool | Nil
def initialize(*, @name : String | Nil = nil, @optional : Bool | Nil = nil)
end
end
end