common

package
v0.0.0-...-062eff5 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AnnotationKeySyncedAtVersion is used to tag destination resources with the resource version of
	// source.
	AnnotationKeySyncedAtVersion = "galley.istio.io/synced-at-version"

	// KubectlLastAppliedConfiguration is used by Kubernetes/kubectl. We remove them from the destination
	// resources to avoid confusing tools.
	KubectlLastAppliedConfiguration = "kubectl.kubernetes.io/last-applied-configuration"
)

Variables

KnownAnnotations is as its name implies.

Functions

func MapEquals

func MapEquals(m1 map[string]string, m2 map[string]string, exclude ...string) bool

MapEquals checks for equality of two maps, excluding the given keys.

Types

type Kube

type Kube interface {
	CustomResourceDefinitionInterface() (v1beta1.CustomResourceDefinitionInterface, error)
	DynamicInterface(gv schema.GroupVersion, kind string, listKind string) (dynamic.Interface, error)
	KubernetesInterface() (kubernetes.Interface, error)
}

Kube interface allows access to the Kubernetes API Service methods. It is mainly used for test/injection purposes

func NewKube

func NewKube(cfg *rest.Config) Kube

NewKube returns a new instance of Kube.

Jump to

Keyboard shortcuts

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