-
Notifications
You must be signed in to change notification settings - Fork 0
/
windows_security_context_options.cr
35 lines (29 loc) · 2.06 KB
/
windows_security_context_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
30
31
32
33
34
35
# THIS FILE WAS AUTO GENERATED FROM THE K8S SWAGGER SPEC
require "yaml"
require "json"
module K8S
# WindowsSecurityContextOptions contain Windows-specific options and credentials.
@[::K8S::Properties(
gmsa_credential_spec: {type: String, nilable: true, key: "gmsaCredentialSpec", getter: false, setter: false},
gmsa_credential_spec_name: {type: String, nilable: true, key: "gmsaCredentialSpecName", getter: false, setter: false},
run_as_user_name: {type: String, nilable: true, key: "runAsUserName", getter: false, setter: false},
)]
class Api::Core::V1::WindowsSecurityContextOptions
include ::JSON::Serializable
include ::YAML::Serializable
# GMSACredentialSpec is where the GMSA admission webhook ([https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field.](https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field.)
@[::JSON::Field(key: "gmsaCredentialSpec", emit_null: false)]
@[::YAML::Field(key: "gmsaCredentialSpec", emit_null: false)]
property gmsa_credential_spec : String | Nil
# GMSACredentialSpecName is the name of the GMSA credential spec to use.
@[::JSON::Field(key: "gmsaCredentialSpecName", emit_null: false)]
@[::YAML::Field(key: "gmsaCredentialSpecName", emit_null: false)]
property gmsa_credential_spec_name : String | Nil
# The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
@[::JSON::Field(key: "runAsUserName", emit_null: false)]
@[::YAML::Field(key: "runAsUserName", emit_null: false)]
property run_as_user_name : String | Nil
def initialize(*, @gmsa_credential_spec : String | Nil = nil, @gmsa_credential_spec_name : String | Nil = nil, @run_as_user_name : String | Nil = nil)
end
end
end