-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move (de-)serialization from Newtonsoft.JSON to System.Json.Text (#64)
* Move (de-)serialization from Newtonsoft.JSON to System.Json.Text Updated de-serialization Fixed unit test project Fixed broken dockerfiles for testing * Updated Readme file after upgrade to .net 7 * Some cleanup + test fix * Remove dangling file --------- Co-authored-by: Timm Hoffmeister <[email protected]> Co-authored-by: Gutemberg Ribeiro <[email protected]>
- Loading branch information
1 parent
2782004
commit ce56475
Showing
22 changed files
with
125 additions
and
317 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -10,17 +10,23 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
# - uses: engineerd/[email protected] | ||
# with: | ||
# config: .github/workflows/kind.yml | ||
# - name: Setup Kube API | ||
# run: kubectl proxy & | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Create k8s Kind Cluster | ||
uses: helm/[email protected] | ||
|
||
- name: Setup CRDs | ||
run: | | ||
kubectl apply -f src/Orleans.Clustering.Kubernetes/Definitions | ||
kubectl create ns orleans | ||
- name: Setup .NET Core | ||
uses: actions/setup-dotnet@v1 | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 7.0.100 | ||
|
||
- name: Build | ||
run: dotnet build --configuration Release | ||
# - name: Test | ||
# run: dotnet test --configuration Release --no-build | ||
|
||
- name: Test | ||
run: dotnet test --configuration Release --no-build |
This file was deleted.
Oops, something went wrong.
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,4 +1,4 @@ | ||
FROM mcr.microsoft.com/dotnet/runtime:7.0-alpine | ||
WORKDIR /app | ||
COPY ./bin/Debug/net7.0 ./ | ||
COPY . ./ | ||
ENTRYPOINT ["dotnet", "KubeClient.dll"] |
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,4 +1,4 @@ | ||
FROM mcr.microsoft.com/dotnet/runtime:7.0-alpine | ||
WORKDIR /app | ||
COPY ./bin/Debug/net7.0 ./ | ||
COPY . ./ | ||
ENTRYPOINT ["dotnet", "KubeSiloHost.dll"] |
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,16 +1,16 @@ | ||
using System.Text.Json.Serialization; | ||
using k8s.Models; | ||
using Newtonsoft.Json; | ||
|
||
namespace Orleans.Clustering.Kubernetes.API; | ||
|
||
internal abstract class CustomObject | ||
{ | ||
[JsonProperty("apiVersion")] | ||
[JsonPropertyName("apiVersion")] | ||
public string ApiVersion { get; set; } | ||
|
||
[JsonProperty("kind")] | ||
[JsonPropertyName("kind")] | ||
public string Kind { get; set; } | ||
|
||
[JsonProperty("metadata")] | ||
[JsonPropertyName("metadata")] | ||
public V1ObjectMeta Metadata { get; set; } | ||
} |
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
Oops, something went wrong.