async fn apply_stateful_set(
        &self,
        spu_group: &SpuGroupObj,
        spg_spec: &SpuGroupSpec,
        spg_name: &str,
        spg_svc_name: String,
    ) -> Result<(), ClientError> {
        let input_stateful = convert_cluster_to_statefulset(
            spg_spec,
            &spu_group.metadata,
            spg_name,
            spg_svc_name,
            &self.namespace,
        );
        debug!(
            "cluster '{}': apply statefulset '{}' changes",
            spg_name, input_stateful.metadata.name,
        );

        self.client.apply(input_stateful).await?;

        Ok(())
    }
/// Generate and apply a stateful set for this cluster
Generate and apply a stateful set for this cluster
Generate and apply a stateful set for this cluster
async fn apply_stateful_set(
        &self,
        spu_group: &SpuGroupObj,
        spg_spec: &SpuGroupSpec,
        spg_name: &str,
        spg_svc_name: String,
    ) -> Result<(), ClientError> {
        let input_stateful = convert_cluster_to_statefulset(
            spg_spec,
            &spu_group.metadata,
            spg_name,
            spg_svc_name,
            &self.namespace,
        );
        debug!(
            "cluster '{}': apply statefulset '{}' changes",
            spg_name, input_stateful.metadata.name,
        );
        self.client.apply(input_stateful).await?;
        Ok(())
    }
async fn apply_stateful_set ( & self , spu_group : & SpuGroupObj , spg_spec : & SpuGroupSpec , spg_name : & str , spg_svc_name : String , ) -> Result < ( ) , ClientError > { let input_stateful = convert_cluster_to_statefulset ( spg_spec , & spu_group . metadata , spg_name , spg_svc_name , & self . namespace , ) ; debug ! ( " " spg_name input_stateful metadata name ) ; self . client . apply ( input_stateful ) . await ? ; Ok ( ( ) ) }
Generate and apply a stateful set for this cluster
Generate and apply a stateful set for this cluster
&self
spu_group
&SpuGroupObj
spg_spec
&SpuGroupSpec
spg_name
&str
spg_svc_name
String
&self
spu_group
&SpuGroupObj
spg_spec
&SpuGroupSpec
spg_name
&str
spg_svc_name
String