-
Notifications
You must be signed in to change notification settings - Fork 0
/
se_linux_strategy_options.cr
29 lines (24 loc) · 1.35 KB
/
se_linux_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
# SELinuxStrategyOptions defines the strategy type and any options used to create the strategy. Deprecated: use SELinuxStrategyOptions from policy API Group instead.
@[::K8S::Properties(
rule: {type: String, nilable: false, key: "rule", getter: false, setter: false},
se_linux_options: {type: Api::Core::V1::SELinuxOptions, nilable: true, key: "seLinuxOptions", getter: false, setter: false},
)]
class Api::Extensions::V1beta1::SELinuxStrategyOptions
include ::JSON::Serializable
include ::YAML::Serializable
# rule is the strategy that will dictate the allowable labels that may be set.
@[::JSON::Field(key: "rule", emit_null: true)]
@[::YAML::Field(key: "rule", emit_null: true)]
property rule : String
# seLinuxOptions required to run as; required for MustRunAs More info: [https://kubernetes.io/docs/tasks/configure-pod-container/security-context/](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/)
@[::JSON::Field(key: "seLinuxOptions", emit_null: false)]
@[::YAML::Field(key: "seLinuxOptions", emit_null: false)]
property se_linux_options : Api::Core::V1::SELinuxOptions | Nil
def initialize(*, @rule : String, @se_linux_options : Api::Core::V1::SELinuxOptions | Nil = nil)
end
end
end