pub struct ReplicaSet {
pub metadata: ObjectMeta,
pub spec: Option<ReplicaSetSpec>,
pub status: Option<ReplicaSetStatus>,
}
Expand description
ReplicaSet ensures that a specified number of pod replicas are running at any given time.
Fields§
§metadata: ObjectMeta
If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object’s metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
spec: Option<ReplicaSetSpec>
Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
status: Option<ReplicaSetStatus>
Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
Trait Implementations§
Source§impl Clone for ReplicaSet
impl Clone for ReplicaSet
Source§fn clone(&self) -> ReplicaSet
fn clone(&self) -> ReplicaSet
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ReplicaSet
impl Debug for ReplicaSet
Source§impl DeepMerge for ReplicaSet
impl DeepMerge for ReplicaSet
Source§fn merge_from(&mut self, other: ReplicaSet)
fn merge_from(&mut self, other: ReplicaSet)
other
into self
.Source§impl Default for ReplicaSet
impl Default for ReplicaSet
Source§fn default() -> ReplicaSet
fn default() -> ReplicaSet
Source§impl<'de> Deserialize<'de> for ReplicaSet
impl<'de> Deserialize<'de> for ReplicaSet
Source§fn deserialize<D>(
deserializer: D,
) -> Result<ReplicaSet, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<ReplicaSet, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Source§impl ListableResource for ReplicaSet
impl ListableResource for ReplicaSet
Source§impl Metadata for ReplicaSet
impl Metadata for ReplicaSet
Source§type Ty = ObjectMeta
type Ty = ObjectMeta
Source§fn metadata(&self) -> &<ReplicaSet as Metadata>::Ty
fn metadata(&self) -> &<ReplicaSet as Metadata>::Ty
Source§fn metadata_mut(&mut self) -> &mut <ReplicaSet as Metadata>::Ty
fn metadata_mut(&mut self) -> &mut <ReplicaSet as Metadata>::Ty
Source§impl PartialEq for ReplicaSet
impl PartialEq for ReplicaSet
Source§impl ReplicaSetExt for ReplicaSet
impl ReplicaSetExt for ReplicaSet
fn new(name: impl ToString) -> Self
fn with_labels( name: impl ToString, labels: impl IntoIterator<Item = (impl ToString, impl ToString)>, ) -> Self
fn spec(self, spec: ReplicaSetSpec) -> Self
fn min_ready_seconds(self, seconds: i32) -> Self
fn replicas(self, replicas: i32) -> Self
fn selector(self, selector: LabelSelector) -> Self
fn match_labels( self, match_labels: impl IntoIterator<Item = (impl ToString, impl ToString)>, ) -> Self
fn template(self, template: PodTemplateSpec) -> Self
fn pod_spec(self, pod_spec: PodSpec) -> Self
Source§impl ReplicaSetGetExt for ReplicaSet
impl ReplicaSetGetExt for ReplicaSet
fn spec(&self) -> Option<&ReplicaSetSpec>
fn status(&self) -> Option<&ReplicaSetStatus>
fn min_ready_seconds(&self) -> Option<i32>
fn spec_replicas(&self) -> Option<i32>
fn selector(&self) -> Option<&LabelSelector>
fn template(&self) -> Option<&PodTemplateSpec>
fn available_replicas(&self) -> Option<i32>
fn ready_replicas(&self) -> Option<i32>
fn fully_labeled_replicas(&self) -> Option<i32>
fn status_replicas(&self) -> Option<i32>
fn observed_generation(&self) -> Option<i64>
fn conditions(&self) -> Option<&[ReplicaSetCondition]>
Source§impl Resource for ReplicaSet
impl Resource for ReplicaSet
Source§const API_VERSION: &'static str = "apps/v1"
const API_VERSION: &'static str = "apps/v1"
Resource::GROUP
and Resource::VERSION
(eg "apiextensions.k8s.io/v1beta1"
)
or just the version for resources without a group (eg "v1"
). Read moreSource§const GROUP: &'static str = "apps"
const GROUP: &'static str = "apps"
Source§const URL_PATH_SEGMENT: &'static str = "replicasets"
const URL_PATH_SEGMENT: &'static str = "replicasets"
Source§type Scope = NamespaceResourceScope
type Scope = NamespaceResourceScope
Source§impl Serialize for ReplicaSet
impl Serialize for ReplicaSet
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
impl StructuralPartialEq for ReplicaSet
Auto Trait Implementations§
impl Freeze for ReplicaSet
impl RefUnwindSafe for ReplicaSet
impl Send for ReplicaSet
impl Sync for ReplicaSet
impl Unpin for ReplicaSet
impl UnwindSafe for ReplicaSet
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<K> OwnerReferenceExt for Kwhere
K: Metadata<Ty = ObjectMeta>,
impl<K> OwnerReferenceExt for Kwhere
K: Metadata<Ty = ObjectMeta>,
Source§fn is_owned_by<T>(&self, owner: &T) -> boolwhere
T: Metadata<Ty = ObjectMeta>,
fn is_owned_by<T>(&self, owner: &T) -> boolwhere
T: Metadata<Ty = ObjectMeta>,
self
being owned by owner
Source§fn is_controlled_by<T>(&self, owner: &T) -> boolwhere
T: Metadata<Ty = ObjectMeta>,
fn is_controlled_by<T>(&self, owner: &T) -> boolwhere
T: Metadata<Ty = ObjectMeta>,
self
being owned and controlled by owner
Source§impl<T> ResourceBuilder for Twhere
T: Metadata<Ty = ObjectMeta>,
impl<T> ResourceBuilder for Twhere
T: Metadata<Ty = ObjectMeta>,
Source§fn owner(self, owner: OwnerReference) -> T
fn owner(self, owner: OwnerReference) -> T
Source§fn label(self, key: impl ToString, value: impl ToString) -> T
fn label(self, key: impl ToString, value: impl ToString) -> T
labels()
Source§fn labels(
self,
labels: impl IntoIterator<Item = (impl ToString, impl ToString)>,
) -> T
fn labels( self, labels: impl IntoIterator<Item = (impl ToString, impl ToString)>, ) -> T
Source§fn annotation(self, key: impl ToString, value: impl ToString) -> T
fn annotation(self, key: impl ToString, value: impl ToString) -> T
labels()