Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Exec ¶
func Exec(kubeClient kubernetes.Interface, restConfig *rest.Config, namespace, pod string, execOpts corev1.PodExecOptions, streamOpts remotecommand.StreamOptions) error
Exec runs a command in a Kubernetes pod.
func Parse ¶
func Parse(doc []byte) (*unstructured.Unstructured, error)
Parse parses the Kubernetes object in `doc` into an Unstructured object. It assumes that `doc` contains exactly one object. It is the caller's responsibility to split files with multiple documents into individual documents.
Types ¶
type Object ¶
Object represents a Kubernetes object, and its children. For example, a Deployment object has a ReplicaSet as a child, which in turn has a pod as its child.
func (*Object) DeepCopy ¶
DeepCopy makes a copy of the Object. This is required to work with the Microservice CRD.
func (*Object) UnmarshalJSON ¶
UnmarshalJSON decodes the given JSON bytes into the object. This is required to work with the Microservice CRD.
type TreeBuilder ¶
type TreeBuilder struct {
// contains filtered or unexported fields
}
TreeBuilder converts the Kubernetes objects in the namespace into a tree structure based on the relationships defined by OwnerReferences.
func NewTreeBuilder ¶
func NewTreeBuilder(podLister corelisters.PodLister, jobLister batchlisters.JobLister, deploymentLister appslisters.DeploymentLister, replicaSetLister appslisters.ReplicaSetLister, statefulSetLister appslisters.StatefulSetLister, daemonSetLister appslisters.DaemonSetLister) TreeBuilder
NewTreeBuilder returns a new TreeBuilder.