-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
105 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
using System.Threading.Tasks; | ||
using Entity.Crd.Gateway; | ||
using k8s; | ||
|
||
namespace BlazorApp.Service.k8s.impl; | ||
|
||
public class GatewayClassService(IKubeService kubeService) : CommonAction<V1GatewayClass>, IGatewayClassService | ||
{ | ||
public new async Task<object> Delete(string ns, string name) | ||
{ | ||
return Task.CompletedTask; | ||
|
||
// return await kubeService.Client().DeleteNamespacedGatewayClassAsync(name, ns); | ||
return await kubeService.Client().CustomObjects | ||
.DeleteClusterCustomObjectAsync("gateway.networking.k8s.io", "v1", "gatewayclasses", name); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
using System.Threading.Tasks; | ||
using Entity.Crd.Gateway; | ||
using k8s; | ||
|
||
namespace BlazorApp.Service.k8s.impl; | ||
|
||
public class TlsRouteService(IKubeService kubeService) : CommonAction<V1Alpha2TLSRoute>, ITlsRouteService | ||
{ | ||
public new async Task<object> Delete(string ns, string name) | ||
{ | ||
return Task.CompletedTask; | ||
|
||
// return await kubeService.Client().DeleteNamespacedTlsRouteAsync(name, ns); | ||
return await kubeService.Client().CustomObjects | ||
.DeleteNamespacedCustomObjectAsync("gateway.networking.k8s.io", "v1alpha2", ns, "tlsroutes", name); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters