Class V1WindowsSecurityContextOptions
WindowsSecurityContextOptions contain Windows-specific options and credentials.
Inheritance
V1WindowsSecurityContextOptions
Assembly: KubernetesClient.dll
Syntax
public record V1WindowsSecurityContextOptions : IEquatable<V1WindowsSecurityContextOptions>
Constructors
V1WindowsSecurityContextOptions()
Declaration
public V1WindowsSecurityContextOptions()
V1WindowsSecurityContextOptions(V1WindowsSecurityContextOptions)
Declaration
protected V1WindowsSecurityContextOptions(V1WindowsSecurityContextOptions original)
Parameters
Properties
EqualityContract
Declaration
protected virtual Type EqualityContract { get; }
Property Value
GmsaCredentialSpec
Declaration
[JsonPropertyName("gmsaCredentialSpec")]
public string GmsaCredentialSpec { get; set; }
Property Value
GmsaCredentialSpecName
GMSACredentialSpecName is the name of the GMSA credential spec to use.
Declaration
[JsonPropertyName("gmsaCredentialSpecName")]
public string GmsaCredentialSpecName { get; set; }
Property Value
HostProcess
HostProcess determines if a container should be run as a 'Host Process'
container. All of a Pod's containers must have the same effective HostProcess
value (it is not allowed to have a mix of HostProcess containers and
non-HostProcess containers). In addition, if HostProcess is true then
HostNetwork must also be set to true.
Declaration
[JsonPropertyName("hostProcess")]
public bool? HostProcess { get; set; }
Property Value
RunAsUserName
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.
Declaration
[JsonPropertyName("runAsUserName")]
public string RunAsUserName { get; set; }
Property Value
Methods
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
Equals(V1WindowsSecurityContextOptions?)
Declaration
public virtual bool Equals(V1WindowsSecurityContextOptions? other)
Parameters
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
PrintMembers(StringBuilder)
Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Returns
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
operator ==(V1WindowsSecurityContextOptions?, V1WindowsSecurityContextOptions?)
Declaration
public static bool operator ==(V1WindowsSecurityContextOptions? left, V1WindowsSecurityContextOptions? right)
Parameters
Returns
operator !=(V1WindowsSecurityContextOptions?, V1WindowsSecurityContextOptions?)
Declaration
public static bool operator !=(V1WindowsSecurityContextOptions? left, V1WindowsSecurityContextOptions? right)
Parameters
Returns
Implements