/// convert SpuGroup to Statefulset Name and Spec
convert SpuGroup to Statefulset Name and Spec
convert SpuGroup to Statefulset Name and Spec
pub fn as_statefulset(
        &self,
        namespace: &str,
        spu_k8_config: &ScK8Config,
        tls: Option<&TlsConfig>,
    ) -> (String, WSAction<StatefulsetSpec>) {
        let statefulset_name = format!("fluvio-spg-{}", self.key());
        let k8_spec = k8_convert::generate_k8_stateful(
            &self.spec,
            self.key(),
            &self.svc_name,
            namespace,
            spu_k8_config,
            tls,
        );
        trace!(?k8_spec);
        (
            statefulset_name.clone(),
            WSAction::Apply(
                MetadataStoreObject::with_spec(statefulset_name, k8_spec.into())
                    .with_context(self.ctx().create_child()),
            ),
        )
    }
pub fn as_statefulset ( & self , namespace : & str , spu_k8_config : & ScK8Config , tls : Option < & TlsConfig > , ) -> ( String , WSAction < StatefulsetSpec > ) { let statefulset_name = format ! ( " " self key ( ) ) ; let k8_spec = k8_convert :: generate_k8_stateful ( & self . spec , self . key ( ) , & self . svc_name , namespace , spu_k8_config , tls , ) ; trace ! ( k8_spec ) ; ( statefulset_name . clone ( ) , WSAction :: Apply ( MetadataStoreObject :: with_spec ( statefulset_name , k8_spec . into ( ) ) . with_context ( self . ctx ( ) . create_child ( ) ) , ) , ) }
convert SpuGroup to Statefulset Name and Spec
convert SpuGroup to Statefulset Name and Spec
&self
namespace
&str
spu_k8_config
&ScK8Config
tls
Option<&TlsConfig>