Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Commit

Permalink
feature: upgrade to .NET 8 (#116)
Browse files Browse the repository at this point in the history
* feature: upgrade to .NET 8

* bump chart to 0.15.0
  • Loading branch information
BlowaXD authored Dec 28, 2023
1 parent f43b760 commit 8a31233
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 52 deletions.
4 changes: 2 additions & 2 deletions charts/bitwarden-secret-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ description: Deploy the Bitwarden Secret Operator

type: application

version: "0.14.2"
version: "0.15.0"

appVersion: "0.14.2"
appVersion: "0.15.0"

keywords:
- operator
Expand Down
14 changes: 7 additions & 7 deletions src/Bitwarden.SecretOperator/Bitwarden.SecretOperator.csproj
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="CliWrap" Version="3.6.4" />
<PackageReference Include="KubeOps" Version="7.6.0" />
<PackageReference Include="KubeOps.KubernetesClient" Version="7.6.0" />
<PackageReference Include="Polly" Version="7.2.4" />
<PackageReference Include="Serilog" Version="3.0.1" />
<PackageReference Include="Serilog.Extensions.Logging" Version="7.0.0" />
<PackageReference Include="Serilog.Sinks.Console" Version="4.1.0" />
<PackageReference Include="KubeOps" Version="7.6.1" />
<PackageReference Include="KubeOps.KubernetesClient" Version="7.6.1" />
<PackageReference Include="Polly" Version="8.2.0" />
<PackageReference Include="Serilog" Version="3.1.1" />
<PackageReference Include="Serilog.Extensions.Logging" Version="8.0.0" />
<PackageReference Include="Serilog.Sinks.Console" Version="5.0.1" />
</ItemGroup>

<PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ public BitwardenSecretController(ILogger<BitwardenSecretController> logger, Kube
secret = await entity.GetSecretAsync(_cliWrapper);
secret.WithOwnerReference(entity);


secret = await _kubernetesClient.Create<V1Secret>(secret);

// created events
Expand All @@ -72,7 +71,6 @@ public BitwardenSecretController(ILogger<BitwardenSecretController> logger, Kube
{
return null;
}
await _eventManager.PublishAsync(secret, "Updating", $"Secret {destinationName} in namespace {destinationNamespace}, updating it...");

secret.WithOwnerReference(entity);

Expand All @@ -95,6 +93,7 @@ public BitwardenSecretController(ILogger<BitwardenSecretController> logger, Kube
}

// success
await _kubernetesClient.UpdateStatus(entity);
return null;
}
catch (HttpOperationException e)
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>

Expand All @@ -10,10 +10,10 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.2" />
<PackageReference Include="NFluent" Version="3.0.1.352" />
<PackageReference Include="xunit" Version="2.5.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.1">
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="NFluent" Version="3.0.2.500" />
<PackageReference Include="xunit" Version="2.6.4" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.6">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
Expand Down

0 comments on commit 8a31233

Please sign in to comment.