k8s

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LabelWebhookName       = "webhook-name"
	LabelPullRequestNumber = "pull-request-number"
)

Variables

This section is empty.

Functions

func GVKToTypeMeta added in v0.1.0

func GVKToTypeMeta(gvk schema.GroupVersionKind) metav1.TypeMeta

func Kind added in v0.1.0

func Kind(kind string) schema.GroupVersionKind

func KindToResource

func KindToResource(kind string) string

func LoadConfig

func LoadConfig(config *Config) (*rest.Config, error)

func ParseGVR

func ParseGVR(apiVersion, kind string) (schema.GroupVersionResource, error)

Types

type Config

type Config struct {
	Namespace string `mapstructure:"namespace"`
	Config    string `mapstructure:"config"`
}

type JSONPatch added in v0.1.0

type JSONPatch struct {
	Op    string      `json:"op"`
	Path  string      `json:"path"`
	Value interface{} `json:"value"`
}

Jump to

Keyboard shortcuts

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