k8s

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2019 License: MIT Imports: 6 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 LoadConfig

func LoadConfig(config *Config) (*rest.Config, 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