@@ -354,8 +354,6 @@ func BuildWithConfig(ctx context.Context, source string, p ClientGenerator, cfg
354354 return buildIstioGatewaySource (ctx , p , cfg )
355355 case types .IstioVirtualService :
356356 return buildIstioVirtualServiceSource (ctx , p , cfg )
357- case types .Cloudfoundry :
358- return buildCloudFoundrySource (ctx , p , cfg )
359357 case types .AmbassadorHost :
360358 return buildAmbassadorHostSource (ctx , p , cfg )
361359 case types .ContourHTTPProxy :
@@ -485,16 +483,6 @@ func buildIstioVirtualServiceSource(ctx context.Context, p ClientGenerator, cfg
485483 return NewIstioVirtualServiceSource (ctx , kubernetesClient , istioClient , cfg .Namespace , cfg .AnnotationFilter , cfg .FQDNTemplate , cfg .CombineFQDNAndAnnotation , cfg .IgnoreHostnameAnnotation )
486484}
487485
488- // buildCloudFoundrySource creates a CloudFoundry source for exposing CF applications as DNS records.
489- // Uses CloudFoundry client instead of Kubernetes client. Simple constructor with minimal parameters.
490- func buildCloudFoundrySource (ctx context.Context , p ClientGenerator , cfg * Config ) (Source , error ) {
491- cfClient , err := p .CloudFoundryClient (cfg .CFAPIEndpoint , cfg .CFUsername , cfg .CFPassword )
492- if err != nil {
493- return nil , err
494- }
495- return NewCloudFoundrySource (cfClient )
496- }
497-
498486func buildAmbassadorHostSource (ctx context.Context , p ClientGenerator , cfg * Config ) (Source , error ) {
499487 kubernetesClient , err := p .KubeClient ()
500488 if err != nil {
0 commit comments