kubepug

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiscoverResourceName

func DiscoverResourceName(client *discovery.DiscoveryClient, group, version, kind string) string

DiscoverResourceName provides a Resource Name based in its Group, Version and Kind

func DownloadSwaggerFile

func DownloadSwaggerFile(version, swaggerdir string, force bool) (filename string, err error)

DownloadSwaggerFile checks wether a swagger.json file needs to be downloaded and returns the file location to be used

func ListDeprecated

func ListDeprecated(config *rest.Config, KubeAPIs map[string]KubeAPI, showDescription bool)

ListDeprecated receives the Map of Deprecated API and List the existent Deprecated Objects in the Cluster

func PopulateKubeAPIMap added in v0.1.0

func PopulateKubeAPIMap(config *rest.Config, swaggerfile string) (KubeAPIs map[string]KubeAPI, err error)

PopulateKubeAPIMap Converts an API Definition into a map of KubeAPIs["group/version/name"]

func WalkObjects added in v0.1.0

func WalkObjects(config *rest.Config, KubernetesAPIs map[string]KubeAPI)

WalkObjects walk through Kubernetes API and verifies which Resources doesn't exists anymore in swagger.json

Types

type KubeAPI added in v0.1.0

type KubeAPI struct {
	// contains filtered or unexported fields
}

KubeAPI represents a Kubernetes API defined in swagger.json

Jump to

Keyboard shortcuts

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