Skip to content

Latest commit

 

History

History
129 lines (70 loc) · 4.11 KB

V1ReplicaSetSpec.md

File metadata and controls

129 lines (70 loc) · 4.11 KB

V1ReplicaSetSpec

Properties

Name Type Description Notes
MinReadySeconds Pointer to int32 Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) [optional]
Replicas Pointer to int32 Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller [optional]
Selector V1LabelSelector
Template Pointer to V1PodTemplateSpec [optional]

Methods

NewV1ReplicaSetSpec

func NewV1ReplicaSetSpec(selector V1LabelSelector, ) *V1ReplicaSetSpec

NewV1ReplicaSetSpec instantiates a new V1ReplicaSetSpec 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

NewV1ReplicaSetSpecWithDefaults

func NewV1ReplicaSetSpecWithDefaults() *V1ReplicaSetSpec

NewV1ReplicaSetSpecWithDefaults instantiates a new V1ReplicaSetSpec 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

GetMinReadySeconds

func (o *V1ReplicaSetSpec) GetMinReadySeconds() int32

GetMinReadySeconds returns the MinReadySeconds field if non-nil, zero value otherwise.

GetMinReadySecondsOk

func (o *V1ReplicaSetSpec) GetMinReadySecondsOk() (*int32, bool)

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

SetMinReadySeconds

func (o *V1ReplicaSetSpec) SetMinReadySeconds(v int32)

SetMinReadySeconds sets MinReadySeconds field to given value.

HasMinReadySeconds

func (o *V1ReplicaSetSpec) HasMinReadySeconds() bool

HasMinReadySeconds returns a boolean if a field has been set.

GetReplicas

func (o *V1ReplicaSetSpec) GetReplicas() int32

GetReplicas returns the Replicas field if non-nil, zero value otherwise.

GetReplicasOk

func (o *V1ReplicaSetSpec) GetReplicasOk() (*int32, bool)

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

SetReplicas

func (o *V1ReplicaSetSpec) SetReplicas(v int32)

SetReplicas sets Replicas field to given value.

HasReplicas

func (o *V1ReplicaSetSpec) HasReplicas() bool

HasReplicas returns a boolean if a field has been set.

GetSelector

func (o *V1ReplicaSetSpec) GetSelector() V1LabelSelector

GetSelector returns the Selector field if non-nil, zero value otherwise.

GetSelectorOk

func (o *V1ReplicaSetSpec) GetSelectorOk() (*V1LabelSelector, bool)

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

SetSelector

func (o *V1ReplicaSetSpec) SetSelector(v V1LabelSelector)

SetSelector sets Selector field to given value.

GetTemplate

func (o *V1ReplicaSetSpec) GetTemplate() V1PodTemplateSpec

GetTemplate returns the Template field if non-nil, zero value otherwise.

GetTemplateOk

func (o *V1ReplicaSetSpec) GetTemplateOk() (*V1PodTemplateSpec, bool)

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

SetTemplate

func (o *V1ReplicaSetSpec) SetTemplate(v V1PodTemplateSpec)

SetTemplate sets Template field to given value.

HasTemplate

func (o *V1ReplicaSetSpec) HasTemplate() bool

HasTemplate returns a boolean if a field has been set.

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