clusteragent

package
v1.4.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultAffinity

func DefaultAffinity() *corev1.Affinity

DefaultAffinity returns the pod anti affinity of the cluster agent the default anti affinity prefers scheduling the runners on different nodes if possible for better checks stability in case of node failure.

func GetApiserverAuthReaderRoleBindingName

func GetApiserverAuthReaderRoleBindingName(dda metav1.Object) string

GetApiserverAuthReaderRoleBindingName returns the name for the role binding to access the extension-apiserver-authentication cm

func GetClusterAgentName

func GetClusterAgentName(dda metav1.Object) string

GetClusterAgentName return the Cluster-Agent name based on the DatadogAgent name

func GetClusterAgentRbacResourcesName

func GetClusterAgentRbacResourcesName(dda metav1.Object) string

GetClusterAgentRbacResourcesName return the Cluster-Agent RBAC resource name

func GetClusterAgentService

func GetClusterAgentService(dda metav1.Object) *corev1.Service

GetClusterAgentService returns the Cluster-Agent service

func GetClusterAgentServiceName

func GetClusterAgentServiceName(dda metav1.Object) string

GetClusterAgentServiceName return the Cluster-Agent service name based on the DatadogAgent name

func GetClusterAgentVersion

func GetClusterAgentVersion(dda metav1.Object) string

GetClusterAgentVersion return the Cluster-Agent version based on the DatadogAgent info

func GetDefaultClusterAgentClusterRolePolicyRules

func GetDefaultClusterAgentClusterRolePolicyRules(dda metav1.Object) []rbacv1.PolicyRule

GetDefaultClusterAgentClusterRolePolicyRules returns the default policy rules for the Cluster Agent Can be used by the Agent if the Cluster Agent is disabled

func GetDefaultClusterAgentRolePolicyRules

func GetDefaultClusterAgentRolePolicyRules(dda metav1.Object) []rbacv1.PolicyRule

GetDefaultClusterAgentRolePolicyRules returns the default policy rules for the Cluster Agent Can be used by the Agent if the Cluster Agent is disabled

func GetDefaultExternalMetricSecretName

func GetDefaultExternalMetricSecretName(dda metav1.Object) string

GetDefaultExternalMetricSecretName returns the external metrics provider secret name

func GetDefaultServiceAccountName

func GetDefaultServiceAccountName(dda metav1.Object) string

GetDefaultServiceAccountName return the default Cluster-Agent ServiceAccountName

func GetExternalMetricsReaderClusterRoleName

func GetExternalMetricsReaderClusterRoleName(dda metav1.Object, versionInfo *version.Info) string

GetExternalMetricsReaderClusterRoleName returns the name for the external metrics reader cluster role

func GetHPAClusterRoleBindingName

func GetHPAClusterRoleBindingName(dda metav1.Object) string

GetHPAClusterRoleBindingName returns a external metrics provider clusterrolebinding for auth-delegator

func GetLeaderElectionPolicyRule

func GetLeaderElectionPolicyRule(dda metav1.Object) []rbacv1.PolicyRule

GetLeaderElectionPolicyRule returns the policy rules for leader election

func GetMetricsServerAPIServiceName

func GetMetricsServerAPIServiceName() string

GetMetricsServerAPIServiceName returns the external metrics provider apiservice name

func GetMetricsServerServiceName

func GetMetricsServerServiceName(dda metav1.Object) string

GetMetricsServerServiceName returns the external metrics provider service name

func NewDefaultClusterAgentDeployment

func NewDefaultClusterAgentDeployment(dda metav1.Object) *appsv1.Deployment

NewDefaultClusterAgentDeployment return a new default cluster-agent deployment

func NewDefaultClusterAgentPodTemplateSpec

func NewDefaultClusterAgentPodTemplateSpec(dda metav1.Object) *corev1.PodTemplateSpec

NewDefaultClusterAgentPodTemplateSpec return a default PodTemplateSpec for the cluster-agent deployment

Types

This section is empty.

Jump to

Keyboard shortcuts

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