Struct k8s_openapi::api::apps::v1::ReplicaSet
source · 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<ReplicaSet> for ReplicaSet
impl PartialEq<ReplicaSet> for ReplicaSet
source§fn eq(&self, other: &ReplicaSet) -> bool
fn eq(&self, other: &ReplicaSet) -> bool
self
and other
values to be equal, and is used
by ==
.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