2017-09-14 10:47:41 -07:00
2017-09-14 10:47:41 -07:00
2017-09-14 10:47:41 -07:00
2017-07-16 22:09:26 +02:00
2017-05-12 10:18:12 -07:00
2017-05-12 10:20:28 -07:00
2017-09-13 14:49:35 -07:00

csharp

Work In Progress

Travis

Usage

Nuget Package

dotnet add package KubernetesClient

Generating the Client Code

Prerequisites

Check out the generator project into some other directory (henceforth $GEN_DIR)

cd $GEN_DIR/..
git clone https://github.com/kubernetes-client/gen

Install the autorest tool:

npm install autorest

Generating code

# Where REPO_DIR points to the root of the csharp repository
cd ${REPO_DIR}/csharp/src
${GEN_DIR}/openapi/csharp.sh generated csharp.settings

Usage

Prerequisities

  • OpenSSL
  • For Linux/Mac:
    • LibCurl built with OpenSSL (Mac: brew install curl --with-nghttp2)
  • For Windows:
    • The easiest option is to use choco choco install openssl.light

Make sure that the openssl executable is in your path, by running openssl before trying to use the library.

Running the Examples

git clone git@github.com:kubernetes-client/csharp.git
cd csharp\examples\simple
dotnet run

Testing

The project uses XUnit as unit testing framework.

To run the tests

cd csharp\tests
dotnet restore
dotnet xunit
Description
No description provided
Readme Apache-2.0 11 MiB
Languages
C# 100%