11use std:: sync:: Arc ;
22
33use clap:: { crate_description, crate_version, Parser } ;
4- use crd:: { v1alpha1, APP_NAME , OPERATOR_NAME } ;
4+ use crd:: { v1alpha1, ZookeeperCluster , ZookeeperZnode , APP_NAME , OPERATOR_NAME } ;
55use futures:: { pin_mut, StreamExt } ;
66use stackable_operator:: {
77 cli:: { Command , ProductOperatorRun } ,
@@ -19,7 +19,8 @@ use stackable_operator::{
1919 Resource ,
2020 } ,
2121 logging:: controller:: report_controller_reconciled,
22- CustomResourceExt ,
22+ shared:: yaml:: SerializeOptions ,
23+ YamlSchema ,
2324} ;
2425
2526use crate :: { zk_controller:: ZK_FULL_CONTROLLER_NAME , znode_controller:: ZNODE_FULL_CONTROLLER_NAME } ;
@@ -51,8 +52,10 @@ async fn main() -> anyhow::Result<()> {
5152 let opts = Opts :: parse ( ) ;
5253 match opts. cmd {
5354 Command :: Crd => {
54- v1alpha1:: ZookeeperCluster :: print_yaml_schema ( built_info:: CARGO_PKG_VERSION ) ?;
55- v1alpha1:: ZookeeperZnode :: print_yaml_schema ( built_info:: CARGO_PKG_VERSION ) ?;
55+ ZookeeperCluster :: merged_crd ( ZookeeperCluster :: V1Alpha1 ) ?
56+ . print_yaml_schema ( built_info:: CARGO_PKG_VERSION , SerializeOptions :: default ( ) ) ?;
57+ ZookeeperZnode :: merged_crd ( ZookeeperZnode :: V1Alpha1 ) ?
58+ . print_yaml_schema ( built_info:: CARGO_PKG_VERSION , SerializeOptions :: default ( ) ) ?;
5659 }
5760 Command :: Run ( ProductOperatorRun {
5861 product_config,
0 commit comments