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. |
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
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
func (o *V1PodAffinityTerm) GetLabelSelector() V1LabelSelector
GetLabelSelector returns the LabelSelector field if non-nil, zero value otherwise.
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.
func (o *V1PodAffinityTerm) SetLabelSelector(v V1LabelSelector)
SetLabelSelector sets LabelSelector field to given value.
func (o *V1PodAffinityTerm) HasLabelSelector() bool
HasLabelSelector returns a boolean if a field has been set.
func (o *V1PodAffinityTerm) GetNamespaces() []string
GetNamespaces returns the Namespaces field if non-nil, zero value otherwise.
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.
func (o *V1PodAffinityTerm) SetNamespaces(v []string)
SetNamespaces sets Namespaces field to given value.
func (o *V1PodAffinityTerm) HasNamespaces() bool
HasNamespaces returns a boolean if a field has been set.
func (o *V1PodAffinityTerm) GetTopologyKey() string
GetTopologyKey returns the TopologyKey field if non-nil, zero value otherwise.
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.
func (o *V1PodAffinityTerm) SetTopologyKey(v string)
SetTopologyKey sets TopologyKey field to given value.