Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@
// The .NET Foundation licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information.

using System.Runtime.Versioning;

using ConversionWebhookOperator.Entities;

using KubeOps.Operator.Web.Webhooks.Conversion;

namespace ConversionWebhookOperator.Webhooks;

[RequiresPreviewFeatures]
[ConversionWebhook(typeof(V3TestEntity))]
public class TestConversionWebhook : ConversionWebhook<V3TestEntity>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

namespace KubeOps.Abstractions.Test.Entities;

#pragma warning disable CA2252 // Opt in to preview features before using them

public class JsonPatchExtensionsTest
{
[Fact]
Expand Down
2 changes: 2 additions & 0 deletions test/KubeOps.KubernetesClient.Test/KubernetesClient.Test.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

namespace KubeOps.KubernetesClient.Test;

#pragma warning disable CA2252 // Opt in to preview features before using them

public sealed class KubernetesClientTest : IntegrationTestBase, IDisposable
{
private readonly IKubernetesClient _client =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

namespace KubeOps.KubernetesClient.Test;

#pragma warning disable CA2252 // Opt in to preview features before using them

public sealed class KubernetesClientAsyncTest : IntegrationTestBase, IDisposable
{
private readonly IKubernetesClient _client =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
// The .NET Foundation licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information.

using System.Runtime.Versioning;

using FluentAssertions;

using KubeOps.Abstractions.Builder;
Expand All @@ -18,7 +16,9 @@
using Microsoft.Extensions.Hosting;

namespace KubeOps.Operator.Web.Test.Builder;
[RequiresPreviewFeatures]

#pragma warning disable CA2252 // Opt in to preview features before using them

public class OperatorBuilderExtensionsTest : IDisposable
{
private readonly IOperatorBuilder _builder = new OperatorBuilder(new ServiceCollection(), new());
Expand Down