Skip to content

Commit 730071f

Browse files
committed
Initial add of generated code, update readme, add settings file.
1 parent 08c4557 commit 730071f

File tree

332 files changed

+208788
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

332 files changed

+208788
-0
lines changed

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,27 @@
11
# csharp
22
Work In Progress
3+
4+
# Generating the client code
5+
6+
## Prerequisites
7+
8+
Check out the generator project into some other directory
9+
(henceforth `$GEN_DIR`)
10+
11+
```
12+
cd $GEN_DIR/..
13+
git clone https://github.com/kubernetes-client/gen
14+
```
15+
16+
Install the [`autorest` tool](https://github.com/azure/autorest):
17+
18+
```
19+
npm install autorest
20+
```
21+
22+
## Generating code
23+
24+
```
25+
cd <path/to/csharp>
26+
${GEN_DIR}/openapi/csharp.sh generated csharp.settings
27+
```

csharp.csproj

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
<PropertyGroup>
3+
<OutputType>Library</OutputType>
4+
<TargetFramework>netcoreapp1.1</TargetFramework>
5+
</PropertyGroup>
6+
<ItemGroup>
7+
<PackageReference Include="Microsoft.Rest.ClientRuntime" Version="3.0.3" />
8+
<PackageReference Include="Newtonsoft.Json" Version="10.0.2" />
9+
</ItemGroup>
10+
</Project>

csharp.settings

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export KUBERNETES_BRANCH=v1.6.0
2+
export CLIENT_VERSION=0.0.1
3+
export PACKAGE_NAME=k8s

generated/IKubernetes.cs

Lines changed: 13775 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)