Skip to content

Latest commit

 

History

History
103 lines (56 loc) · 3.49 KB

V1PodAffinityTerm.md

File metadata and controls

103 lines (56 loc) · 3.49 KB

V1PodAffinityTerm

Properties

Name Type Description Notes
LabelSelector Pointer to V1LabelSelector [optional]
Namespaces Pointer to []string namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" [optional]
TopologyKey string This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.

Methods

NewV1PodAffinityTerm

func NewV1PodAffinityTerm(topologyKey string, ) *V1PodAffinityTerm

NewV1PodAffinityTerm instantiates a new V1PodAffinityTerm object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

NewV1PodAffinityTermWithDefaults

func NewV1PodAffinityTermWithDefaults() *V1PodAffinityTerm

NewV1PodAffinityTermWithDefaults instantiates a new V1PodAffinityTerm object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

GetLabelSelector

func (o *V1PodAffinityTerm) GetLabelSelector() V1LabelSelector

GetLabelSelector returns the LabelSelector field if non-nil, zero value otherwise.

GetLabelSelectorOk

func (o *V1PodAffinityTerm) GetLabelSelectorOk() (*V1LabelSelector, bool)

GetLabelSelectorOk returns a tuple with the LabelSelector field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetLabelSelector

func (o *V1PodAffinityTerm) SetLabelSelector(v V1LabelSelector)

SetLabelSelector sets LabelSelector field to given value.

HasLabelSelector

func (o *V1PodAffinityTerm) HasLabelSelector() bool

HasLabelSelector returns a boolean if a field has been set.

GetNamespaces

func (o *V1PodAffinityTerm) GetNamespaces() []string

GetNamespaces returns the Namespaces field if non-nil, zero value otherwise.

GetNamespacesOk

func (o *V1PodAffinityTerm) GetNamespacesOk() (*[]string, bool)

GetNamespacesOk returns a tuple with the Namespaces field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetNamespaces

func (o *V1PodAffinityTerm) SetNamespaces(v []string)

SetNamespaces sets Namespaces field to given value.

HasNamespaces

func (o *V1PodAffinityTerm) HasNamespaces() bool

HasNamespaces returns a boolean if a field has been set.

GetTopologyKey

func (o *V1PodAffinityTerm) GetTopologyKey() string

GetTopologyKey returns the TopologyKey field if non-nil, zero value otherwise.

GetTopologyKeyOk

func (o *V1PodAffinityTerm) GetTopologyKeyOk() (*string, bool)

GetTopologyKeyOk returns a tuple with the TopologyKey field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetTopologyKey

func (o *V1PodAffinityTerm) SetTopologyKey(v string)

SetTopologyKey sets TopologyKey field to given value.

[Back to Model list] [Back to API list] [Back to README]