k8s

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: May 15, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

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

Variables

Set provides config and scheme. nolint: gochecknoglobals

Functions

func GVKToTypeMeta

func GVKToTypeMeta(gvk schema.GroupVersionKind) metav1.TypeMeta

func Kind

func Kind(kind string) schema.GroupVersionKind

func LoadConfig

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

func NewScheme

func NewScheme() (*runtime.Scheme, error)

Types

type Config

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

type JSONPatch

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