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: Self)
fn merge_from(&mut self, other: Self)
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<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Source§impl ListableResource for ReplicaSet
impl ListableResource for ReplicaSet
Source§impl Metadata for ReplicaSet
impl Metadata for ReplicaSet
Source§impl PartialEq for ReplicaSet
impl PartialEq for ReplicaSet
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 more