Documentation ¶
Index ¶
Constants ¶
View Source
const ( // LabelRunID is an annotation key to mark an object with // the unique ID of a test run. LabelRunID = "integration-tester/run-id" // LabelVersion is an annotation key to mark an object // with the version of the test harness that created it. LabelVersion = "integration-tester/version" // LabelManagedBy is a label key to mark an object as // managed by the test harness. LabelManagedBy = "app.kubernetes.io/managed-by" )
Variables ¶
This section is empty.
Functions ¶
func ObjectRunID ¶
func ObjectRunID(u *unstructured.Unstructured) string
ObjectRunID returns the value of the LabelRunID annotation on the given object.
Types ¶
type MetaInjectionFilter ¶
MetaInjectionFilter injects ObjectMeta data into Kubernetes objects. Specifically, it labels objects with the ManagedBy string, and annotates with the RunID.
type Rename ¶
type Rename struct { // Name is the new name of the object. Name string // Namespace is the new namespace of the object. Namespace string }
Rename is a filter that rewrites the name of a Kubernetes object, i.e. it replaces the value of the `metadata.name` field.
type SpecialOpsFilter ¶
type SpecialOpsFilter struct { Ops map[string]interface{} Decoders map[string]yaml.Unmarshaler }
SpecialOpsFilter is a yaml.Filter that extracts top-level YAML keys whose name begins with `$`. These keys denote special operations that test drivers need to interpolate.
type UnmarshalFunc ¶
UnmarshalFunc is a yaml.Unmarshaler adapator.
func (UnmarshalFunc) UnmarshalYAML ¶
func (u UnmarshalFunc) UnmarshalYAML(node *yaml.Node) error
UnmarshalYAML ...
Click to show internal directories.
Click to hide internal directories.