@@ -299,29 +299,6 @@ impl v1alpha1::HiveCluster {
299299 }
300300}
301301
302- // TODO: Temporary solution until listener-operator is finished
303- #[ derive( Clone , Debug , Default , Display , Deserialize , Eq , JsonSchema , PartialEq , Serialize ) ]
304- #[ serde( rename_all = "PascalCase" ) ]
305- pub enum CurrentlySupportedListenerClasses {
306- #[ default]
307- #[ serde( rename = "cluster-internal" ) ]
308- ClusterInternal ,
309- #[ serde( rename = "external-unstable" ) ]
310- ExternalUnstable ,
311- #[ serde( rename = "external-stable" ) ]
312- ExternalStable ,
313- }
314-
315- impl CurrentlySupportedListenerClasses {
316- pub fn k8s_service_type ( & self ) -> String {
317- match self {
318- CurrentlySupportedListenerClasses :: ClusterInternal => "ClusterIP" . to_string ( ) ,
319- CurrentlySupportedListenerClasses :: ExternalUnstable => "NodePort" . to_string ( ) ,
320- CurrentlySupportedListenerClasses :: ExternalStable => "LoadBalancer" . to_string ( ) ,
321- }
322- }
323- }
324-
325302#[ derive( Clone , Debug , Deserialize , Eq , JsonSchema , PartialEq , Serialize ) ]
326303#[ serde( rename_all = "camelCase" ) ]
327304pub struct HdfsConnection {
@@ -490,20 +467,6 @@ impl MetaStoreConfig {
490467 }
491468}
492469
493- // TODO: Temporary solution until listener-operator is finished
494- #[ derive( Clone , Debug , Display , Deserialize , Eq , JsonSchema , PartialEq , Serialize ) ]
495- #[ serde( rename_all = "PascalCase" ) ]
496- pub enum ServiceType {
497- NodePort ,
498- ClusterIP ,
499- }
500-
501- impl Default for ServiceType {
502- fn default ( ) -> Self {
503- Self :: NodePort
504- }
505- }
506-
507470#[ derive(
508471 Clone , Debug , Deserialize , Eq , Hash , JsonSchema , PartialEq , Serialize , Display , EnumString ,
509472) ]
0 commit comments