Skip to content

Commit

Permalink
More CRD docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Razz4780 committed Nov 3, 2023
1 parent d429414 commit 59ebe29
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mirrord/operator/src/crd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,12 @@ pub enum OperatorFeatures {
namespaced
)]
pub struct CopyTargetSpec {
/// Original target.
/// Original target. Only [`Target::Pod`] and [`Target::Deployment`] are accepted.
pub target: Target,
/// How long should the operator keep this pod alive after its creation.
/// The pod is deleted when this timout has expired and there are no connected clients.
pub idle_ttl: Option<u32>,
/// Should the operator scale down target deployment while this pod is alive.
/// Should the operator scale down target deployment by 1 while this pod is alive.
/// Ignored if [`Target`] is not [`Target::Deployment`].
pub scale_down: Option<bool>,
}

0 comments on commit 59ebe29

Please sign in to comment.