# Functions
AnnotateNode writes v4 and v6 CIDRs and health IPs in the given k8s node name.
AnnotatePod adds a Kubernetes annotation with key annotationKey and value annotationValue.
Client returns the default Kubernetes client.
Configure sets the parameters of the Kubernetes package.
CreateClient creates a new client to access the Kubernetes API.
CreateConfig creates a client configuration based on the configured API server and Kubeconfig path.
CreateConfigFromAgentResponse creates a client configuration from a models.DaemonConfigurationResponse.
GetAPIServer returns the configured API server address.
GetKubeconfigPath returns the configured path to the kubeconfig configuration file.
GetNode returns the kubernetes nodeName's node information from the kubernetes api server.
GetPolicyLabelsv1 extracts the name of np.
GetPolicyLabelsv1beta1 returns the label selector for the given network policy.
GetServerVersion returns the kubernetes api-server version.
Init initializes the Kubernetes package.
IsEnabled checks if Cilium is being used in tandem with Kubernetes.
NewK8sTranslator returns RuleTranslator.
ParseNetworkPolicy parses a k8s NetworkPolicy.
ParseNetworkPolicyV1beta1 parses a k8s NetworkPolicyv1beta1.
ParseNode parses a kubernetes node to a cilium node.
PreprocessRules translates rules that apply to headless services.
# Constants
BackOffLoopTimeout is the default duration when trying to reach the kube-apiserver.
EnvNodeNameSpec is the environment label used by Kubernetes to specify the node's name.
# Variables
ErrNilNode is returned when the Kubernetes API server has returned a nil node.
# Structs
RuleTranslator implements pkg/policy.Translator interface Translate populates/depopulates given rule with ToCIDR rules Based on provided service/endpoint.
# Interfaces
PodEndpoint is the interface that the endpoint representing a pod has to implement.