Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Clientset *kubernetes.Clientset // contains filtered or unexported fields }
Client is used to connect with k8s api server
func (*Client) GetK8sPodAnnotations ¶
func (kc *Client) GetK8sPodAnnotations(k8sPodNamespaces string, k8sPodName string) (map[string]string, error)
GetK8sPodAnnotations returns the pod's annotation through k8s api server
func (*Client) GetStsName ¶
GetStsName returns the name of the pod's owner
type K8sArgs ¶
type K8sArgs struct { types.CommonArgs K8sPodName types.UnmarshallableString K8sPodNamespace types.UnmarshallableString K8sPodInfraContainerID types.UnmarshallableString K8sAnnotation types.UnmarshallableString }
K8sArgs is the valid CNI_ARGS used for Kubernetes
Click to show internal directories.
Click to hide internal directories.