class Pyrite::Api::Core::V1::PreferredSchedulingTerm

Overview

An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).

Defined in:

versions/v1.14/api/core/v1/preferred_scheduling_term.cr

Constructors

Instance Method Summary

Constructor methods inherited from class Pyrite::Kubernetes::Spec

new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
new(pull : JSON::PullParser)
new

Constructor Detail

def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).


def self.new(pull : JSON::PullParser) #

An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).


def self.new(*, preference : Api::Core::V1::NodeSelectorTerm, weight : Int32) #

Instance Method Detail


def preference=(preference : Api::Core::V1::NodeSelectorTerm) #

def weight : Int32 #

def weight=(weight : Int32) #