File tree Expand file tree Collapse file tree
rust/operator-binary/src/crd Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2056,7 +2056,69 @@ spec:
20562056
20572057 impl RoundtripTestData for v1alpha1:: HdfsClusterSpec {
20582058 fn roundtrip_test_data ( ) -> Vec < Self > {
2059- vec ! [ ]
2059+ stackable_operator:: utils:: yaml_from_str_singleton_map ( indoc:: indoc! { r#"
2060+ - image:
2061+ productVersion: 3.4.2
2062+ pullPolicy: IfNotPresent
2063+ clusterOperation:
2064+ reconciliationPaused: false
2065+ stopped: true
2066+ clusterConfig:
2067+ zookeeperConfigMapName: hdfs-zk
2068+ dfsReplication: 1
2069+ vectorAggregatorConfigMapName: vector-aggregator-discovery
2070+ authentication:
2071+ tlsSecretClass: tls
2072+ kerberos:
2073+ secretClass: kerberos
2074+ authorization:
2075+ opa:
2076+ configMapName: opa
2077+ package: hdfs
2078+ rackAwareness:
2079+ - nodeLabel: kubernetes.io/zone
2080+ - podLabel: app.kubernetes.io/role-group
2081+ nameNodes:
2082+ envOverrides:
2083+ COMMON_VAR: role-value
2084+ ROLE_VAR: role-value
2085+ config:
2086+ listenerClass: cluster-internal
2087+ resources:
2088+ cpu:
2089+ min: 250m
2090+ max: "1"
2091+ memory:
2092+ limit: 1Gi
2093+ logging:
2094+ enableVectorAgent: true
2095+ containers:
2096+ hdfs:
2097+ console:
2098+ level: INFO
2099+ roleGroups:
2100+ default:
2101+ replicas: 2
2102+ envOverrides:
2103+ COMMON_VAR: group-value
2104+ GROUP_VAR: group-value
2105+ dataNodes:
2106+ config:
2107+ listenerClass: cluster-internal
2108+ logging:
2109+ enableVectorAgent: true
2110+ roleGroups:
2111+ default:
2112+ replicas: 1
2113+ journalNodes:
2114+ config:
2115+ logging:
2116+ enableVectorAgent: true
2117+ roleGroups:
2118+ default:
2119+ replicas: 1
2120+ "# } )
2121+ . expect ( "Failed to parse HdfsClusterSpec YAML" )
20602122 }
20612123 }
20622124}
You can’t perform that action at this time.
0 commit comments