-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_as_user_strategy_options.cr
29 lines (24 loc) · 1.19 KB
/
run_as_user_strategy_options.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
# THIS FILE WAS AUTO GENERATED FROM THE K8S SWAGGER SPEC
require "yaml"
require "json"
module K8S
# RunAsUserStrategyOptions defines the strategy type and any options used to create the strategy.
@[::K8S::Properties(
ranges: {type: Array(Api::Policy::V1beta1::IDRange), nilable: true, key: "ranges", getter: false, setter: false},
rule: {type: String, nilable: false, key: "rule", getter: false, setter: false},
)]
class Api::Policy::V1beta1::RunAsUserStrategyOptions
include ::JSON::Serializable
include ::YAML::Serializable
# ranges are the allowed ranges of uids that may be used. If you would like to force a single uid then supply a single range with the same start and end. Required for MustRunAs.
@[::JSON::Field(key: "ranges", emit_null: false)]
@[::YAML::Field(key: "ranges", emit_null: false)]
property ranges : Array(Api::Policy::V1beta1::IDRange) | Nil
# rule is the strategy that will dictate the allowable RunAsUser values that may be set.
@[::JSON::Field(key: "rule", emit_null: true)]
@[::YAML::Field(key: "rule", emit_null: true)]
property rule : String
def initialize(*, @rule : String, @ranges : Array | Nil = nil)
end
end
end