Documentation ¶
Overview ¶
Package apiserver provides an API client for the Kubernetes API server.
Index ¶
- Variables
- func GetKubeClient(_ time.Duration) (kubernetes.Interface, error)
- func GetMetadataMapBundleOnAllNodes(_ *APIClient) (*apiv1.MetadataResponse, error)
- func GetMetadataMapBundleOnNode(_ string) (*apiv1.MetadataResponse, error)
- func GetNodeLabels(_ *APIClient, _ string) (map[string]string, error)
- type APIClient
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotCompiled is returned if kubernetes apiserver support is not compiled in. // User classes should handle that case as gracefully as possible. ErrNotCompiled = errors.New("kubernetes apiserver support not compiled in") )
Functions ¶
func GetKubeClient ¶ added in v0.9.0
func GetKubeClient(_ time.Duration) (kubernetes.Interface, error)
GetKubeClient returns a Kubernetes client.
func GetMetadataMapBundleOnAllNodes ¶
func GetMetadataMapBundleOnAllNodes(_ *APIClient) (*apiv1.MetadataResponse, error)
GetMetadataMapBundleOnAllNodes is used for the CLI svcmap command to run fetch the service map of all nodes.
func GetMetadataMapBundleOnNode ¶
func GetMetadataMapBundleOnNode(_ string) (*apiv1.MetadataResponse, error)
GetMetadataMapBundleOnNode is used for the CLI svcmap command to output given a nodeName
Types ¶
type APIClient ¶
type APIClient struct {
Cl interface{}
}
APIClient provides authenticated access to the
func GetAPIClient ¶
GetAPIClient returns the shared ApiClient instance.
Directories ¶
Path | Synopsis |
---|---|
Package controllers is responsible for running the Kubernetes controllers needed by the Datadog Cluster Agent
|
Package controllers is responsible for running the Kubernetes controllers needed by the Datadog Cluster Agent |
Package leaderelection provides functions related with the leader election mechanism offered in Kubernetes.
|
Package leaderelection provides functions related with the leader election mechanism offered in Kubernetes. |
metrics
Package metrics provides telemetry to know who's the leader in Kubernetes objects that implement the leader/follower pattern.
|
Package metrics provides telemetry to know who's the leader in Kubernetes objects that implement the leader/follower pattern. |
Click to show internal directories.
Click to hide internal directories.