apiserver

package
v0.9.1-0...-9c46226 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 6 Imported by: 4

Documentation

Overview

Package apiserver provides an API client for the Kubernetes API server.

Index

Constants

This section is empty.

Variables

View Source
var ErrNotCompiled = errors.New("kubernetes apiserver support not compiled in")

ErrNotCompiled is returned if kubernetes apiserver support is not compiled in. User classes should handle that case as gracefully as possible.

Functions

func GetKubeClient added in v0.9.0

func GetKubeClient(_ time.Duration, _ float32, _ int) (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

func GetNodeLabels

func GetNodeLabels(_ *APIClient, _ string) (map[string]string, error)

GetNodeLabels retrieves the labels of the queried node from the cache of the shared informer.

Types

type APIClient

type APIClient struct {
	Cl interface{}
}

APIClient provides authenticated access to the

func GetAPIClient

func GetAPIClient() (*APIClient, error)

GetAPIClient returns the shared ApiClient instance.

func WaitForAPIClient added in v0.9.0

func WaitForAPIClient(_ context.Context) (*APIClient, error)

WaitForAPIClient 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.

Jump to

Keyboard shortcuts

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