class Pyrite::Api::Core::V1::WeightedPodAffinityTerm

Overview

The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)

Defined in:

versions/v1.14/api/core/v1/weighted_pod_affinity_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) #

The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)


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

The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)


def self.new(*, pod_affinity_term : Api::Core::V1::PodAffinityTerm, weight : Int32) #

Instance Method Detail

def pod_affinity_term : Api::Core::V1::PodAffinityTerm #

def pod_affinity_term=(pod_affinity_term : Api::Core::V1::PodAffinityTerm) #

def weight : Int32 #

def weight=(weight : Int32) #