Show / Hide Table of Contents

Class V1WindowsSecurityContextOptions

WindowsSecurityContextOptions contain Windows-specific options and credentials.

Inheritance
object
V1WindowsSecurityContextOptions
Implements
IEquatable<V1WindowsSecurityContextOptions>
Inherited Members
object.GetType()
object.MemberwiseClone()
object.Equals(object, object)
object.ReferenceEquals(object, object)
Namespace: k8s.Models
Assembly: KubernetesClient.dll
Syntax
public record V1WindowsSecurityContextOptions : IEquatable<V1WindowsSecurityContextOptions>

Constructors

View Source

V1WindowsSecurityContextOptions()

Declaration
public V1WindowsSecurityContextOptions()
View Source

V1WindowsSecurityContextOptions(V1WindowsSecurityContextOptions)

Declaration
protected V1WindowsSecurityContextOptions(V1WindowsSecurityContextOptions original)
Parameters
Type Name Description
V1WindowsSecurityContextOptions original

Properties

View Source

EqualityContract

Declaration
protected virtual Type EqualityContract { get; }
Property Value
Type Description
Type
View Source

GmsaCredentialSpec

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.

Declaration
[JsonPropertyName("gmsaCredentialSpec")]
public string GmsaCredentialSpec { get; set; }
Property Value
Type Description
string
View Source

GmsaCredentialSpecName

GMSACredentialSpecName is the name of the GMSA credential spec to use.

Declaration
[JsonPropertyName("gmsaCredentialSpecName")]
public string GmsaCredentialSpecName { get; set; }
Property Value
Type Description
string
View Source

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
Type Description
bool?
View Source

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
Type Description
string

Methods

View Source

Equals(object?)

Declaration
public override bool Equals(object? obj)
Parameters
Type Name Description
object obj
Returns
Type Description
bool
Overrides
object.Equals(object)
View Source

Equals(V1WindowsSecurityContextOptions?)

Declaration
public virtual bool Equals(V1WindowsSecurityContextOptions? other)
Parameters
Type Name Description
V1WindowsSecurityContextOptions other
Returns
Type Description
bool
View Source

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
int
Overrides
object.GetHashCode()
View Source

PrintMembers(StringBuilder)

Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Type Name Description
StringBuilder builder
Returns
Type Description
bool
View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
object.ToString()

Operators

View Source

operator ==(V1WindowsSecurityContextOptions?, V1WindowsSecurityContextOptions?)

Declaration
public static bool operator ==(V1WindowsSecurityContextOptions? left, V1WindowsSecurityContextOptions? right)
Parameters
Type Name Description
V1WindowsSecurityContextOptions left
V1WindowsSecurityContextOptions right
Returns
Type Description
bool
View Source

operator !=(V1WindowsSecurityContextOptions?, V1WindowsSecurityContextOptions?)

Declaration
public static bool operator !=(V1WindowsSecurityContextOptions? left, V1WindowsSecurityContextOptions? right)
Parameters
Type Name Description
V1WindowsSecurityContextOptions left
V1WindowsSecurityContextOptions right
Returns
Type Description
bool

Implements

IEquatable<T>
  • View Source
In this article
Back to top Generated by DocFX