generator

command
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

README

Deprecated Generator

This generator fetches the last stable version of Kubernetes API package, and generates a deprecations database based on this API markers.

This program is heavily based on (almost a copy) of https://github.com/kubernetes/code-generator/tree/master/cmd/prerelease-lifecycle-gen

It outputs today a json containing an array of deprecated items (this structure should be documented soon).

The idea is that this json can be consumed either by a status page, or by Kubepug in a much smaller and faster way than the whole swagger.json file

Running

On a working directory (and after building the generator):

GOPATH=$(pwd) go get k8s.io/api
GOPATH=$(pwd) generator -i k8s.io/api/./... > results.json

Generating your own data

The Dockerfile on this directory can be used to generate your own data:

docker build -t generator .
docker run generator > data.json

The generated data can then be passed to Kubepug via argument:

kubepug --database=/your/location/of/data.json ....

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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