Skip to content

Commit 07a59e7

Browse files
authored
Update SDK version to 14.0 for Kubernetes 1.30 (#1551)
* Update KUBERNETES_BRANCH to v1.30.0 in csharp.settings * Update version.json to 14.0 * Update SDK version to 14.0 for Kubernetes 1.30 * fix csharp naming conflict * drop support of net7 * remove unused comment
1 parent 3dae1cf commit 07a59e7

File tree

17 files changed

+22331
-15172
lines changed

17 files changed

+22331
-15172
lines changed

.github/workflows/buildtest.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ jobs:
1616
with:
1717
dotnet-version: |
1818
6.0.x
19-
7.0.x
2019
8.0.x
2120
# - name: Check Format
2221
# # don't check formatting on Windows b/c of CRLF issues.
@@ -48,10 +47,10 @@ jobs:
4847
fetch-depth: 0
4948
- name: Add msbuild to PATH
5049
uses: microsoft/setup-msbuild@v2
51-
- name: Setup dotnet SDK 7
50+
- name: Setup dotnet SDK
5251
uses: actions/setup-dotnet@v4
5352
with:
54-
dotnet-version: '7.0.x'
53+
dotnet-version: '8.0.x'
5554
- name: Restore nugets (msbuild)
5655
run: msbuild .\src\KubernetesClient\ -t:restore -p:RestorePackagesConfig=true
5756
- name: Build (msbuild)
@@ -68,7 +67,6 @@ jobs:
6867
with:
6968
dotnet-version: |
7069
6.0.x
71-
7.0.x
7270
8.0.x
7371
- name: Minikube
7472
run: minikube start

.github/workflows/codeql-analysis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@ jobs:
2929
uses: actions/setup-dotnet@v4
3030
with:
3131
dotnet-version: |
32-
3.1.x
3332
6.0.x
34-
7.0.x
3533
8.0.x
3634
3735
# Initializes the CodeQL tools for scanning.

.github/workflows/docfx.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ jobs:
3434
with:
3535
dotnet-version: |
3636
6.0.x
37-
7.0.x
3837
8.0.x
3938
4039
- name: Build

.github/workflows/draft.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ jobs:
1919
with:
2020
dotnet-version: |
2121
6.0.x
22-
7.0.x
2322
8.0.x
2423
2524
- name: dotnet restore
@@ -37,4 +36,4 @@ jobs:
3736
env:
3837
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3938
run: |
40-
gh release create -d --generate-notes v$env:NBGV_NuGetPackageVersion
39+
gh release create -d --generate-notes v$env:NBGV_NuGetPackageVersion

.github/workflows/nuget.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ jobs:
1919
with:
2020
dotnet-version: |
2121
6.0.x
22-
7.0.x
2322
8.0.x
2423
2524
- name: dotnet restore

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ ${GEN_DIR}/openapi/csharp.sh ${REPO_DIR}/src/KubernetesClient ${REPO_DIR}/csharp
154154

155155
| SDK Version | Kubernetes Version | .NET Targeting |
156156
|-------------|--------------------|-----------------------------------------------------|
157+
| 14.0 | 1.30 | net6.0;net8.0;net48*;netstandard2.0* |
157158
| 13.0 | 1.29 | net6.0;net7.0;net8.0;net48*;netstandard2.0* |
158159
| 12.0 | 1.28 | net6.0;net7.0;net48*;netstandard2.0* |
159160
| 11.0 | 1.27 | net6.0;net7.0;net48*;netstandard2.0* |

csharp.settings

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
export KUBERNETES_BRANCH=v1.29.0
1+
export KUBERNETES_BRANCH=v1.30.0
22
export CLIENT_VERSION=0.0.1
33
export PACKAGE_NAME=k8s

src/KubernetesClient.Kubectl/KubernetesClient.Kubectl.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
4+
<TargetFrameworks>net6.0;net8.0</TargetFrameworks>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77
<RootNamespace>k8s.kubectl</RootNamespace>

src/KubernetesClient.ModelConverter/KubernetesClient.ModelConverter.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
3+
<TargetFrameworks>net6.0;net8.0</TargetFrameworks>
44
<RootNamespace>k8s.ModelConverter</RootNamespace>
55
</PropertyGroup>
66

src/KubernetesClient/KubernetesClient.csproj

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
4+
<TargetFrameworks>net6.0;net8.0</TargetFrameworks>
55
<RootNamespace>k8s</RootNamespace>
6-
<!-- seems bug in net7 json generator, some types missing in its result
7-
net8 is still in preview, will enable it after net8 release -->
8-
<!-- <PublishAot Condition="'$(TargetFramework)' == 'net8.0'">true</PublishAot> -->
96
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
107
</PropertyGroup>
118

0 commit comments

Comments
 (0)