describe grpc pod config
This commit is contained in:
parent
035de57925
commit
48b5993a25
@ -130,6 +130,7 @@ impl HAClusterTopology {
|
|||||||
target_namespaces: vec!["nmstate".to_string()],
|
target_namespaces: vec!["nmstate".to_string()],
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
debug!("Creating NMState operator group: {nmstate_operator_group:#?}");
|
debug!("Creating NMState operator group: {nmstate_operator_group:#?}");
|
||||||
k8s_client
|
k8s_client
|
||||||
.apply(&nmstate_operator_group, Some("nmstate"))
|
.apply(&nmstate_operator_group, Some("nmstate"))
|
||||||
|
|||||||
@ -1,3 +1,5 @@
|
|||||||
|
use std::collections::BTreeMap;
|
||||||
|
|
||||||
use kube::CustomResource;
|
use kube::CustomResource;
|
||||||
use schemars::JsonSchema;
|
use schemars::JsonSchema;
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
@ -15,6 +17,8 @@ pub struct CatalogSourceSpec {
|
|||||||
pub image: String,
|
pub image: String,
|
||||||
pub display_name: String,
|
pub display_name: String,
|
||||||
pub publisher: String,
|
pub publisher: String,
|
||||||
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
|
pub grpc_pod_config: Option<GrpcPodConfig>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Default for CatalogSource {
|
impl Default for CatalogSource {
|
||||||
@ -25,3 +29,12 @@ impl Default for CatalogSource {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(Default, Serialize, Deserialize, Clone, Debug, JsonSchema)]
|
||||||
|
#[serde(rename_all = "camelCase")]
|
||||||
|
pub struct GrpcPodConfig {
|
||||||
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
|
pub memory_target: Option<String>,
|
||||||
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
|
pub node_selector: Option<BTreeMap<String, String>>,
|
||||||
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user