describe grpc pod config

This commit is contained in:
Ian Letourneau 2025-10-23 11:00:54 -04:00
parent 035de57925
commit 48b5993a25
2 changed files with 14 additions and 0 deletions

View File

@ -130,6 +130,7 @@ impl HAClusterTopology {
target_namespaces: vec!["nmstate".to_string()],
},
};
debug!("Creating NMState operator group: {nmstate_operator_group:#?}");
k8s_client
.apply(&nmstate_operator_group, Some("nmstate"))

View File

@ -1,3 +1,5 @@
use std::collections::BTreeMap;
use kube::CustomResource;
use schemars::JsonSchema;
use serde::{Deserialize, Serialize};
@ -15,6 +17,8 @@ pub struct CatalogSourceSpec {
pub image: String,
pub display_name: String,
pub publisher: String,
#[serde(skip_serializing_if = "Option::is_none")]
pub grpc_pod_config: Option<GrpcPodConfig>,
}
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>>,
}