extract

package
v0.0.0-...-a161123 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Annotations

func Annotations(object k8sutil.Object) map[string]string

Annotations extracts annotations from the given object.

func GVK

GVK extracts the GroupVersionKind of an object.

func Labels

func Labels(object k8sutil.Object) map[string]string

Labels extracts labels from the given object.

func PodSpec

func PodSpec(obj k8sutil.Object) (coreV1.PodSpec, bool)

PodSpec extracts a pod spec from the given object, if available.

func PodTemplateSpec

func PodTemplateSpec(obj k8sutil.Object) (coreV1.PodTemplateSpec, bool)

PodTemplateSpec extracts a pod template spec from the given object, if available.

func Replicas

func Replicas(obj k8sutil.Object) (int32, bool)

Replicas extracts replicas from the given object, if available.

func Selector

func Selector(obj k8sutil.Object) (*metaV1.LabelSelector, bool)

Selector extracts a selector from the given object, if available.

Types

This section is empty.

Jump to

Keyboard shortcuts

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