Skip to content
Prev Previous commit
Next Next commit
chore: restore correct annotation order and suppress CA2252 warning i…
…n tests
  • Loading branch information
kimpenhaus committed Nov 17, 2025
commit 3fa2157e8ca20da72ca5fe57307479ec916be91f
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

namespace ConversionWebhookOperator.Webhooks;

[ConversionWebhook(typeof(V3TestEntity))]
[RequiresPreviewFeatures]
[ConversionWebhook(typeof(V3TestEntity))]
public class TestConversionWebhook : ConversionWebhook<V3TestEntity>
{
protected override IEnumerable<IEntityConverter<V3TestEntity>> Converters => new IEntityConverter<V3TestEntity>[]
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