Skip to content

Commit 16f05cd

Browse files
chore(source): remove cloudfoundry support
Signed-off-by: ivan katliarchuk <[email protected]>
1 parent 98a2fa5 commit 16f05cd

File tree

3 files changed

+0
-228
lines changed

3 files changed

+0
-228
lines changed

source/cloudfoundry.go

Lines changed: 0 additions & 63 deletions
This file was deleted.

source/cloudfoundry_test.go

Lines changed: 0 additions & 153 deletions
This file was deleted.

source/store.go

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -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-
498486
func buildAmbassadorHostSource(ctx context.Context, p ClientGenerator, cfg *Config) (Source, error) {
499487
kubernetesClient, err := p.KubeClient()
500488
if err != nil {

0 commit comments

Comments
 (0)