utils

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2019 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var VpaLabels = map[string]string{
	"creator": "Fairwinds",
	"source":  "goldilocks",
}

VpaLabels is a set of default labels that get placed on every VPA. TODO: Replace this with the OwnerRef pattern

Functions

func Difference added in v1.0.0

func Difference(a, b []string) (diff []string)

Difference returns the difference betwee two string slices.

func UniqueString added in v1.0.0

func UniqueString(stringSlice []string) []string

UniqueString returns a unique string from a slice.

Types

type Event

type Event struct {
	Key          string // A key identifying the object.  This is in the format <object-type>/<object-name>
	EventType    string // The type of event - update, delete, or create
	Namespace    string // The namespace of the event's object
	ResourceType string // The type of resource that was updated.
}

An Event represents an update of a Kubernetes object and contains metadata about the update.

Jump to

Keyboard shortcuts

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