Struct PriorityClass.PriorityDef
Used to define a pod priority.
Namespace: Neon.Kube
Assembly: Neon.Kube.dll
Syntax
public struct PriorityClass.PriorityDef
Constructors
PriorityDef(string, int, string, bool, bool)
Constructor.
Declaration
public PriorityDef(string name, int value, string description = null, bool isSystem = false, bool isDefault = false)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The priority name. |
| int | value | The priority value. |
| string | description | Optionally specifies the priority description. |
| bool | isSystem | Optionally indicates that this is a built-in Kubernetes priority. |
| bool | isDefault | Optionally indicates that this is the global default priority class. |
Properties
Description
Returns the priority descripton (or null).
Declaration
public readonly string Description { get; }
Property Value
| Type | Description |
|---|---|
| string |
IsDefault
Returns true for the global default priority class.
Declaration
public readonly bool IsDefault { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsSystem
Returns true for built-in Kubernetes priorities.
Declaration
public readonly bool IsSystem { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Name
Returns the priority name.
Declaration
public readonly string Name { get; }
Property Value
| Type | Description |
|---|---|
| string |
Value
Returns the priority value.
Declaration
public readonly int Value { get; }
Property Value
| Type | Description |
|---|---|
| int |