@@ -60,23 +60,7 @@ func (h *Handler) clusterAppsGet(w http.ResponseWriter, r *http.Request, p httpr
60
60
61
61
page , err := apiclient .GetResourcePage [types.AppServerOrSAMLIdPServiceProvider ](r .Context (), clt , req )
62
62
if err != nil {
63
- // If the error returned is due to types.KindAppOrSAMLIdPServiceProvider being unsupported, then fallback to attempting to just fetch types.AppServers.
64
- // This is for backwards compatibility with leaf clusters that don't support this new type yet.
65
- // DELETE IN 15.0
66
- if trace .IsNotImplemented (err ) {
67
- req , err = convertListResourcesRequest (r , types .KindAppServer )
68
- if err != nil {
69
- return nil , trace .Wrap (err )
70
- }
71
- appServerPage , err := apiclient .GetResourcePage [types.AppServer ](r .Context (), clt , req )
72
- if err != nil {
73
- return nil , trace .Wrap (err )
74
- }
75
- // Convert the ResourcePage returned containing AppServers to a ResourcePage containing AppServerOrSAMLIdPServiceProviders.
76
- page = appServerOrSPPageFromAppServerPage (appServerPage )
77
- } else {
78
- return nil , trace .Wrap (err )
79
- }
63
+ return nil , trace .Wrap (err )
80
64
}
81
65
82
66
userGroups , err := apiclient .GetAllResources [types.UserGroup ](r .Context (), clt , & proto.ListResourcesRequest {
@@ -449,28 +433,3 @@ func (h *Handler) proxyDNSNames() (dnsNames []string) {
449
433
}
450
434
return dnsNames
451
435
}
452
-
453
- // appServerOrSPPageFromAppServerPage converts a ResourcePage containing AppServers to a ResourcePage containing AppServerOrSAMLIdPServiceProviders.
454
- // DELETE IN 15.0
455
- //
456
- //nolint:staticcheck // SA1019. To be deleted along with the API in 16.0.
457
- func appServerOrSPPageFromAppServerPage (appServerPage apiclient.ResourcePage [types.AppServer ]) apiclient.ResourcePage [types.AppServerOrSAMLIdPServiceProvider ] {
458
- resources := make ([]types.AppServerOrSAMLIdPServiceProvider , len (appServerPage .Resources ))
459
-
460
- for i , appServer := range appServerPage .Resources {
461
- // Create AppServerOrSAMLIdPServiceProvider object from appServer.
462
- appServerOrSP := & types.AppServerOrSAMLIdPServiceProviderV1 {
463
- Resource : & types.AppServerOrSAMLIdPServiceProviderV1_AppServer {
464
- AppServer : appServer .(* types.AppServerV3 ),
465
- },
466
- }
467
-
468
- resources [i ] = appServerOrSP
469
- }
470
-
471
- return apiclient.ResourcePage [types.AppServerOrSAMLIdPServiceProvider ]{
472
- Resources : resources ,
473
- Total : appServerPage .Total ,
474
- NextKey : appServerPage .NextKey ,
475
- }
476
- }
0 commit comments