-
Notifications
You must be signed in to change notification settings - Fork 0
/
webhook_conversion.cr
31 lines (26 loc) · 1.84 KB
/
webhook_conversion.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
# WebhookConversion describes how to call a conversion webhook
@[::K8S::Properties(
client_config: {type: ApiextensionsApiserver::Apis::Apiextensions::V1::WebhookClientConfig, nilable: true, key: "clientConfig", getter: false, setter: false},
conversion_review_versions: {type: Array(String), nilable: false, key: "conversionReviewVersions", getter: false, setter: false},
)]
class ApiextensionsApiserver::Apis::Apiextensions::V1::WebhookConversion
include ::JSON::Serializable
include ::JSON::Serializable::Unmapped
include ::YAML::Serializable
include ::YAML::Serializable::Unmapped
# clientConfig is the instructions for how to call the webhook if strategy is `Webhook`.
@[::JSON::Field(key: "clientConfig", emit_null: false)]
@[::YAML::Field(key: "clientConfig", emit_null: false)]
property client_config : ApiextensionsApiserver::Apis::Apiextensions::V1::WebhookClientConfig | Nil
# conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects. The API server will use the first version in the list which it supports. If none of the versions specified in this list are supported by API server, conversion will fail for the custom resource. If a persisted Webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail.
@[::JSON::Field(key: "conversionReviewVersions", emit_null: true)]
@[::YAML::Field(key: "conversionReviewVersions", emit_null: true)]
property conversion_review_versions : Array(String)
def initialize(*, @conversion_review_versions : Array(String), @client_config : ApiextensionsApiserver::Apis::Apiextensions::V1::WebhookClientConfig | Nil = nil)
end
end
end