ksonnet-gen

command
v0.1.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 2, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

README

ksonnet-gen

ksonnet-gen takes the OpenAPI Kubernetes specification and generates a Jsonnet file representing that API definition.

Build

dep ensure      # Fetch dependencies
go build -o ksonnet-gen .

Usage

ksonnet-gen [path to k8s OpenAPI swagger.json] [output dir]

Typically the swagger spec is in something like k8s.io/kubernetes/api/openapi-spec, where k8s.io is in your Go src folder.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package jsonnet contains a collection of simple rewriting facilities that allow us to easily map text from the OpenAPI spec to things that are Jsonnet-friendly (e.g., renaming identifiers that are Jsonnet keywords, lowerCamelCase'ing names, and so on).
Package jsonnet contains a collection of simple rewriting facilities that allow us to easily map text from the OpenAPI spec to things that are Jsonnet-friendly (e.g., renaming identifiers that are Jsonnet keywords, lowerCamelCase'ing names, and so on).
Package kubeversion contains a collection of helper methods that help to customize the code generated for ksonnet-lib to suit different Kubernetes versions.
Package kubeversion contains a collection of helper methods that help to customize the code generated for ksonnet-lib to suit different Kubernetes versions.
Package printer implements printing of jsonnet AST nodes.
Package printer implements printing of jsonnet AST nodes.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL