Show / Hide Table of Contents

Class V1SeccompProfile

SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.

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

Constructors

View Source

V1SeccompProfile()

Declaration
public V1SeccompProfile()
View Source

V1SeccompProfile(V1SeccompProfile)

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

Properties

View Source

EqualityContract

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

LocalhostProfile

localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must be set if type is "Localhost". Must NOT be set for any other type.

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

Type

type indicates which kind of seccomp profile will be applied. Valid options are:

Localhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied.

Declaration
[JsonPropertyName("type")]
public string Type { 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(V1SeccompProfile?)

Declaration
public virtual bool Equals(V1SeccompProfile? other)
Parameters
Type Name Description
V1SeccompProfile 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 ==(V1SeccompProfile?, V1SeccompProfile?)

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

operator !=(V1SeccompProfile?, V1SeccompProfile?)

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

Implements

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