pub struct TargetDynamicContainer {
pub cpu: String,
pub deleted: bool,
pub env: HashMap<String, String>,
pub generation: i64,
pub health_check: Option<DynamicContainerHealthCheck>,
pub image: String,
pub memory: String,
pub name: String,
pub ports: Vec<i32>,
pub replicas: i32,
pub secret_env: HashMap<String, String>,
pub suspended_reason: Option<String>,
}Expand description
One release-independent container the Operator should run in its namespace. The manager sends the complete set on every sync. An empty set removes containers previously owned by this deployment.
JSON schema
{
"description": "One release-independent container the Operator should run in its namespace.\nThe manager sends the complete set on every sync. An empty set removes\ncontainers previously owned by this deployment.",
"type": "object",
"required": [
"cpu",
"deleted",
"generation",
"image",
"memory",
"name",
"ports",
"replicas"
],
"properties": {
"cpu": {
"type": "string"
},
"deleted": {
"type": "boolean"
},
"env": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"generation": {
"type": "integer",
"format": "int64",
"minimum": 0.0
},
"healthCheck": {
"oneOf": [
{
"type": "null"
},
{
"allOf": [
{
"$ref": "#/components/schemas/DynamicContainerHealthCheck"
}
]
}
]
},
"image": {
"type": "string"
},
"memory": {
"type": "string"
},
"name": {
"type": "string"
},
"ports": {
"type": "array",
"items": {
"type": "integer",
"format": "int32",
"minimum": 0.0
}
},
"replicas": {
"type": "integer",
"format": "int32",
"minimum": 0.0
},
"secretEnv": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"suspendedReason": {
"description": "Stop an installed workload when its release no longer admits the image.",
"type": [
"string",
"null"
]
}
}
}Fields§
§cpu: String§deleted: bool§env: HashMap<String, String>§generation: i64§health_check: Option<DynamicContainerHealthCheck>§image: String§memory: String§name: String§ports: Vec<i32>§replicas: i32§secret_env: HashMap<String, String>§suspended_reason: Option<String>Stop an installed workload when its release no longer admits the image.
Implementations§
Source§impl TargetDynamicContainer
impl TargetDynamicContainer
pub fn builder() -> TargetDynamicContainer
Trait Implementations§
Source§impl Clone for TargetDynamicContainer
impl Clone for TargetDynamicContainer
Source§impl Debug for TargetDynamicContainer
impl Debug for TargetDynamicContainer
Source§impl<'de> Deserialize<'de> for TargetDynamicContainer
impl<'de> Deserialize<'de> for TargetDynamicContainer
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&TargetDynamicContainer> for TargetDynamicContainer
impl From<&TargetDynamicContainer> for TargetDynamicContainer
Source§fn from(value: &TargetDynamicContainer) -> Self
fn from(value: &TargetDynamicContainer) -> Self
Converts to this type from the input type.
Source§impl From<TargetDynamicContainer> for TargetDynamicContainer
impl From<TargetDynamicContainer> for TargetDynamicContainer
Source§fn from(value: TargetDynamicContainer) -> Self
fn from(value: TargetDynamicContainer) -> Self
Converts to this type from the input type.
Source§impl Serialize for TargetDynamicContainer
impl Serialize for TargetDynamicContainer
Source§impl TryFrom<TargetDynamicContainer> for TargetDynamicContainer
impl TryFrom<TargetDynamicContainer> for TargetDynamicContainer
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: TargetDynamicContainer) -> Result<Self, ConversionError>
fn try_from(value: TargetDynamicContainer) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Forget for TargetDynamicContainer
impl Freeze for TargetDynamicContainer
impl Move for TargetDynamicContainer
impl RefUnwindSafe for TargetDynamicContainer
impl Send for TargetDynamicContainer
impl Sync for TargetDynamicContainer
impl Unpin for TargetDynamicContainer
impl UnsafeUnpin for TargetDynamicContainer
impl UnwindSafe for TargetDynamicContainer
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
Mutably borrows from an owned value. Read more