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
This commit is contained in:
6
.github/workflows/buildtest.yaml
vendored
6
.github/workflows/buildtest.yaml
vendored
@@ -16,7 +16,6 @@ jobs:
|
||||
with:
|
||||
dotnet-version: |
|
||||
6.0.x
|
||||
7.0.x
|
||||
8.0.x
|
||||
# - name: Check Format
|
||||
# # don't check formatting on Windows b/c of CRLF issues.
|
||||
@@ -48,10 +47,10 @@ jobs:
|
||||
fetch-depth: 0
|
||||
- name: Add msbuild to PATH
|
||||
uses: microsoft/setup-msbuild@v2
|
||||
- name: Setup dotnet SDK 7
|
||||
- name: Setup dotnet SDK
|
||||
uses: actions/setup-dotnet@v4
|
||||
with:
|
||||
dotnet-version: '7.0.x'
|
||||
dotnet-version: '8.0.x'
|
||||
- name: Restore nugets (msbuild)
|
||||
run: msbuild .\src\KubernetesClient\ -t:restore -p:RestorePackagesConfig=true
|
||||
- name: Build (msbuild)
|
||||
@@ -68,7 +67,6 @@ jobs:
|
||||
with:
|
||||
dotnet-version: |
|
||||
6.0.x
|
||||
7.0.x
|
||||
8.0.x
|
||||
- name: Minikube
|
||||
run: minikube start
|
||||
|
||||
2
.github/workflows/codeql-analysis.yml
vendored
2
.github/workflows/codeql-analysis.yml
vendored
@@ -29,9 +29,7 @@ jobs:
|
||||
uses: actions/setup-dotnet@v4
|
||||
with:
|
||||
dotnet-version: |
|
||||
3.1.x
|
||||
6.0.x
|
||||
7.0.x
|
||||
8.0.x
|
||||
|
||||
# Initializes the CodeQL tools for scanning.
|
||||
|
||||
1
.github/workflows/docfx.yaml
vendored
1
.github/workflows/docfx.yaml
vendored
@@ -34,7 +34,6 @@ jobs:
|
||||
with:
|
||||
dotnet-version: |
|
||||
6.0.x
|
||||
7.0.x
|
||||
8.0.x
|
||||
|
||||
- name: Build
|
||||
|
||||
1
.github/workflows/draft.yaml
vendored
1
.github/workflows/draft.yaml
vendored
@@ -19,7 +19,6 @@ jobs:
|
||||
with:
|
||||
dotnet-version: |
|
||||
6.0.x
|
||||
7.0.x
|
||||
8.0.x
|
||||
|
||||
- name: dotnet restore
|
||||
|
||||
1
.github/workflows/nuget.yaml
vendored
1
.github/workflows/nuget.yaml
vendored
@@ -19,7 +19,6 @@ jobs:
|
||||
with:
|
||||
dotnet-version: |
|
||||
6.0.x
|
||||
7.0.x
|
||||
8.0.x
|
||||
|
||||
- name: dotnet restore
|
||||
|
||||
@@ -154,6 +154,7 @@ ${GEN_DIR}/openapi/csharp.sh ${REPO_DIR}/src/KubernetesClient ${REPO_DIR}/csharp
|
||||
|
||||
| SDK Version | Kubernetes Version | .NET Targeting |
|
||||
|-------------|--------------------|-----------------------------------------------------|
|
||||
| 14.0 | 1.30 | net6.0;net8.0;net48*;netstandard2.0* |
|
||||
| 13.0 | 1.29 | net6.0;net7.0;net8.0;net48*;netstandard2.0* |
|
||||
| 12.0 | 1.28 | net6.0;net7.0;net48*;netstandard2.0* |
|
||||
| 11.0 | 1.27 | net6.0;net7.0;net48*;netstandard2.0* |
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
export KUBERNETES_BRANCH=v1.29.0
|
||||
export KUBERNETES_BRANCH=v1.30.0
|
||||
export CLIENT_VERSION=0.0.1
|
||||
export PACKAGE_NAME=k8s
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
|
||||
<TargetFrameworks>net6.0;net8.0</TargetFrameworks>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<RootNamespace>k8s.kubectl</RootNamespace>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
|
||||
<TargetFrameworks>net6.0;net8.0</TargetFrameworks>
|
||||
<RootNamespace>k8s.ModelConverter</RootNamespace>
|
||||
</PropertyGroup>
|
||||
|
||||
|
||||
@@ -1,11 +1,8 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
|
||||
<TargetFrameworks>net6.0;net8.0</TargetFrameworks>
|
||||
<RootNamespace>k8s</RootNamespace>
|
||||
<!-- seems bug in net7 json generator, some types missing in its result
|
||||
net8 is still in preview, will enable it after net8 release -->
|
||||
<!-- <PublishAot Condition="'$(TargetFramework)' == 'net8.0'">true</PublishAot> -->
|
||||
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
|
||||
</PropertyGroup>
|
||||
|
||||
|
||||
@@ -78,57 +78,51 @@ namespace LibKubernetesGenerator
|
||||
switch (style)
|
||||
{
|
||||
case "parameter":
|
||||
if (jsonName == "namespace")
|
||||
switch (jsonName)
|
||||
{
|
||||
return "namespaceParameter";
|
||||
}
|
||||
else if (jsonName == "continue")
|
||||
{
|
||||
return "continueParameter";
|
||||
case "namespace":
|
||||
return "namespaceParameter";
|
||||
case "continue":
|
||||
return "continueParameter";
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
case "fieldctor":
|
||||
if (jsonName == "namespace")
|
||||
|
||||
switch (jsonName)
|
||||
{
|
||||
return "namespaceProperty";
|
||||
}
|
||||
else if (jsonName == "continue")
|
||||
{
|
||||
return "continueProperty";
|
||||
}
|
||||
else if (jsonName == "$ref")
|
||||
{
|
||||
return "refProperty";
|
||||
}
|
||||
else if (jsonName == "default")
|
||||
{
|
||||
return "defaultProperty";
|
||||
}
|
||||
else if (jsonName == "operator")
|
||||
{
|
||||
return "operatorProperty";
|
||||
}
|
||||
else if (jsonName == "$schema")
|
||||
{
|
||||
return "schema";
|
||||
}
|
||||
else if (jsonName == "enum")
|
||||
{
|
||||
return "enumProperty";
|
||||
}
|
||||
else if (jsonName == "object")
|
||||
{
|
||||
return "objectProperty";
|
||||
}
|
||||
else if (jsonName == "readOnly")
|
||||
{
|
||||
return "readOnlyProperty";
|
||||
}
|
||||
else if (jsonName == "from")
|
||||
{
|
||||
return "fromProperty";
|
||||
case "namespace":
|
||||
return "namespaceProperty";
|
||||
case "continue":
|
||||
return "continueProperty";
|
||||
case "$ref":
|
||||
return "refProperty";
|
||||
case "default":
|
||||
return "defaultProperty";
|
||||
case "operator":
|
||||
return "operatorProperty";
|
||||
case "$schema":
|
||||
return "schema";
|
||||
case "enum":
|
||||
return "enumProperty";
|
||||
case "object":
|
||||
return "objectProperty";
|
||||
case "readOnly":
|
||||
return "readOnlyProperty";
|
||||
case "from":
|
||||
return "fromProperty";
|
||||
case "int":
|
||||
return "intValue";
|
||||
case "bool":
|
||||
return "boolValue";
|
||||
case "string":
|
||||
return "stringValue";
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
if (jsonName.Contains("-"))
|
||||
|
||||
7512
swagger.json
7512
swagger.json
File diff suppressed because it is too large
Load Diff
@@ -2,7 +2,7 @@
|
||||
<PropertyGroup>
|
||||
<IsPackable>false</IsPackable>
|
||||
<RootNamespace>k8s.E2E</RootNamespace>
|
||||
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
|
||||
<TargetFrameworks>net6.0;net8.0</TargetFrameworks>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
|
||||
<TargetFrameworks>net6.0;net8.0</TargetFrameworks>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<IsPackable>false</IsPackable>
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
<PropertyGroup>
|
||||
<IsPackable>false</IsPackable>
|
||||
<RootNamespace>k8s.Tests</RootNamespace>
|
||||
<TargetFrameworks Condition="'$(OS)' != 'Windows_NT'">net6.0;net7.0;net8.0</TargetFrameworks>
|
||||
<TargetFrameworks Condition="'$(OS)' == 'Windows_NT'">net6.0;net7.0;net8.0;net48</TargetFrameworks>
|
||||
<TargetFrameworks Condition="'$(OS)' != 'Windows_NT'">net6.0;net8.0</TargetFrameworks>
|
||||
<TargetFrameworks Condition="'$(OS)' == 'Windows_NT'">net6.0;net8.0;net48</TargetFrameworks>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<PropertyGroup>
|
||||
<IsPackable>false</IsPackable>
|
||||
<RootNamespace>k8s.Tests</RootNamespace>
|
||||
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
|
||||
<TargetFrameworks>net6.0;net8.0</TargetFrameworks>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"$schema": "https://raw.githubusercontent.com/AArnott/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
|
||||
"version": "13.0",
|
||||
"version": "14.0",
|
||||
"publicReleaseRefSpec": [
|
||||
"^refs/heads/master$",
|
||||
"^refs/tags/v\\d+\\.\\d+\\.\\d+"
|
||||
|
||||
Reference in New Issue
Block a user