diff --git a/examples/Operator/Controller/V1TestEntityController.cs b/examples/Operator/Controller/V1TestEntityController.cs index 7f6960f2..40254e19 100644 --- a/examples/Operator/Controller/V1TestEntityController.cs +++ b/examples/Operator/Controller/V1TestEntityController.cs @@ -1,6 +1,5 @@ using KubeOps.Abstractions.Controller; using KubeOps.Abstractions.Events; -using KubeOps.Abstractions.Finalizer; using KubeOps.Abstractions.Queue; using KubeOps.Abstractions.Rbac; using KubeOps.KubernetesClient; @@ -8,7 +7,6 @@ using Microsoft.Extensions.Logging; using Operator.Entities; -using Operator.Finalizer; namespace Operator.Controller; diff --git a/src/KubeOps.Abstractions/Entities/CustomKubernetesEntity{TSpec,TStatus}.cs b/src/KubeOps.Abstractions/Entities/CustomKubernetesEntity{TSpec,TStatus}.cs index b4ded6cc..b6837686 100644 --- a/src/KubeOps.Abstractions/Entities/CustomKubernetesEntity{TSpec,TStatus}.cs +++ b/src/KubeOps.Abstractions/Entities/CustomKubernetesEntity{TSpec,TStatus}.cs @@ -1,6 +1,4 @@ -using System.Text.Json.Serialization; - -using k8s; +using k8s; namespace KubeOps.Abstractions.Entities; diff --git a/src/KubeOps.Cli/Commands/Generator/DockerGenerator.cs b/src/KubeOps.Cli/Commands/Generator/DockerGenerator.cs index c47e2561..1fdbc2b5 100644 --- a/src/KubeOps.Cli/Commands/Generator/DockerGenerator.cs +++ b/src/KubeOps.Cli/Commands/Generator/DockerGenerator.cs @@ -1,10 +1,6 @@ using System.CommandLine; using System.CommandLine.Invocation; -using k8s; -using k8s.Models; - -using KubeOps.Abstractions.Kustomize; using KubeOps.Cli.Output; using Spectre.Console; diff --git a/src/KubeOps.Cli/Commands/Generator/WebhookOperatorGenerator.cs b/src/KubeOps.Cli/Commands/Generator/WebhookOperatorGenerator.cs index a4564d18..bc2d384d 100644 --- a/src/KubeOps.Cli/Commands/Generator/WebhookOperatorGenerator.cs +++ b/src/KubeOps.Cli/Commands/Generator/WebhookOperatorGenerator.cs @@ -9,7 +9,6 @@ using KubeOps.Cli.Certificates; using KubeOps.Cli.Output; using KubeOps.Cli.Transpilation; -using KubeOps.Transpiler; using Spectre.Console; diff --git a/src/KubeOps.Generator/Generators/OperatorBuilderGenerator.cs b/src/KubeOps.Generator/Generators/OperatorBuilderGenerator.cs index a0d835d6..f767d618 100644 --- a/src/KubeOps.Generator/Generators/OperatorBuilderGenerator.cs +++ b/src/KubeOps.Generator/Generators/OperatorBuilderGenerator.cs @@ -1,7 +1,5 @@ using System.Text; -using KubeOps.Generator.SyntaxReceiver; - using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; diff --git a/src/KubeOps.Operator/Watcher/LeaderAwareResourceWatcher{TEntity}.cs b/src/KubeOps.Operator/Watcher/LeaderAwareResourceWatcher{TEntity}.cs index 540af8c2..463ed122 100644 --- a/src/KubeOps.Operator/Watcher/LeaderAwareResourceWatcher{TEntity}.cs +++ b/src/KubeOps.Operator/Watcher/LeaderAwareResourceWatcher{TEntity}.cs @@ -3,7 +3,6 @@ using k8s.Models; using KubeOps.Abstractions.Builder; -using KubeOps.KubernetesClient; using KubeOps.Operator.Queue; using Microsoft.Extensions.Logging; diff --git a/test/KubeOps.Operator.Test/Builder/OperatorBuilder.Test.cs b/test/KubeOps.Operator.Test/Builder/OperatorBuilder.Test.cs index 18803abd..410be34f 100644 --- a/test/KubeOps.Operator.Test/Builder/OperatorBuilder.Test.cs +++ b/test/KubeOps.Operator.Test/Builder/OperatorBuilder.Test.cs @@ -1,6 +1,5 @@ using FluentAssertions; -using k8s.LeaderElection; using k8s.Models; using KubeOps.Abstractions.Builder; diff --git a/test/KubeOps.Operator.Web.Test/IntegrationTestCollection.cs b/test/KubeOps.Operator.Web.Test/IntegrationTestCollection.cs index bfb86ce6..f2a097d8 100644 --- a/test/KubeOps.Operator.Web.Test/IntegrationTestCollection.cs +++ b/test/KubeOps.Operator.Web.Test/IntegrationTestCollection.cs @@ -11,12 +11,10 @@ using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; -using Microsoft.AspNetCore.Routing; using Microsoft.Build.Locator; using Microsoft.CodeAnalysis.MSBuild; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection.Extensions; -using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; namespace KubeOps.Operator.Web.Test; diff --git a/test/KubeOps.Operator.Web.Test/LocalTunnel/DevelopmentTunnelService.Test.cs b/test/KubeOps.Operator.Web.Test/LocalTunnel/DevelopmentTunnelService.Test.cs index d06dcab6..22a464ed 100644 --- a/test/KubeOps.Operator.Web.Test/LocalTunnel/DevelopmentTunnelService.Test.cs +++ b/test/KubeOps.Operator.Web.Test/LocalTunnel/DevelopmentTunnelService.Test.cs @@ -3,17 +3,12 @@ using k8s.Models; using KubeOps.Operator.Client; -using KubeOps.Operator.Web.Test.TestApp; namespace KubeOps.Operator.Web.Test.LocalTunnel; public class DevelopmentTunnelServiceTest : IntegrationTestBase { - // public DevelopmentTunnelServiceTest(TestApplicationFactory factory) : base(factory) - // { - // } - - [Fact] + [Fact(Skip = "This test is flakey since localtunnel is not always available. Need an alternative.")] public async Task Should_Install_Validation_Webhooks() { using var client = KubernetesClientFactory.Create(); @@ -24,7 +19,7 @@ public async Task Should_Install_Validation_Webhooks() validators.Webhooks[0].ClientConfig.Url.Should().Contain("/validate/v1operatorwebintegrationtestentity"); } - [Fact] + [Fact(Skip = "This test is flakey since localtunnel is not always available. Need an alternative.")] public async Task Should_Install_Mutation_Webhooks() { using var client = KubernetesClientFactory.Create(); diff --git a/test/KubeOps.Operator.Web.Test/Webhooks/MutationWebhook.Integration.Test.cs b/test/KubeOps.Operator.Web.Test/Webhooks/MutationWebhook.Integration.Test.cs index cc7b6e98..79e98318 100644 --- a/test/KubeOps.Operator.Web.Test/Webhooks/MutationWebhook.Integration.Test.cs +++ b/test/KubeOps.Operator.Web.Test/Webhooks/MutationWebhook.Integration.Test.cs @@ -7,7 +7,7 @@ namespace KubeOps.Operator.Web.Test.Webhooks; public class MutationWebhookIntegrationTest : IntegrationTestBase { - [Fact] + [Fact(Skip = "This test is flakey since localtunnel is not always available. Need an alternative.")] public async Task Should_Allow_Creation_Of_Entity() { using var client = KubernetesClientFactory.Create(); @@ -16,7 +16,7 @@ public async Task Should_Allow_Creation_Of_Entity() await client.DeleteAsync(e); } - [Fact] + [Fact(Skip = "This test is flakey since localtunnel is not always available. Need an alternative.")] public async Task Should_Mutate_Entity_According_To_Code() { using var client = KubernetesClientFactory.Create(); diff --git a/test/KubeOps.Operator.Web.Test/Webhooks/ValidationWebhook.Integration.Test.cs b/test/KubeOps.Operator.Web.Test/Webhooks/ValidationWebhook.Integration.Test.cs index b0c50809..0db689d2 100644 --- a/test/KubeOps.Operator.Web.Test/Webhooks/ValidationWebhook.Integration.Test.cs +++ b/test/KubeOps.Operator.Web.Test/Webhooks/ValidationWebhook.Integration.Test.cs @@ -9,7 +9,7 @@ namespace KubeOps.Operator.Web.Test.Webhooks; public class ValidationWebhookIntegrationTest : IntegrationTestBase { - [Fact] + [Fact(Skip = "This test is flakey since localtunnel is not always available. Need an alternative.")] public async Task Should_Allow_Creation_Of_Entity() { using var client = KubernetesClientFactory.Create(); @@ -17,7 +17,7 @@ public async Task Should_Allow_Creation_Of_Entity() await client.DeleteAsync(e); } - [Fact] + [Fact(Skip = "This test is flakey since localtunnel is not always available. Need an alternative.")] public async Task Should_Disallow_Creation_When_Validation_Fails() { using var client = KubernetesClientFactory.Create();