Documentation ¶
Index ¶
- func DefaultAffinity() *corev1.Affinity
- func GetApiserverAuthReaderRoleBindingName(dda metav1.Object) string
- func GetClusterAgentName(dda metav1.Object) string
- func GetClusterAgentRbacResourcesName(dda metav1.Object) string
- func GetClusterAgentService(dda metav1.Object) *corev1.Service
- func GetClusterAgentServiceName(dda metav1.Object) string
- func GetClusterAgentVersion(dda metav1.Object) string
- func GetDefaultClusterAgentClusterRolePolicyRules(dda metav1.Object) []rbacv1.PolicyRule
- func GetDefaultClusterAgentRolePolicyRules(dda metav1.Object) []rbacv1.PolicyRule
- func GetDefaultExternalMetricSecretName(dda metav1.Object) string
- func GetDefaultSCC(dda *v2alpha1.DatadogAgent) *securityv1.SecurityContextConstraints
- func GetDefaultServiceAccountName(dda metav1.Object) string
- func GetExternalMetricsReaderClusterRoleName(dda metav1.Object, versionInfo *version.Info) string
- func GetHPAClusterRoleBindingName(dda metav1.Object) string
- func GetLeaderElectionPolicyRule(dda metav1.Object) []rbacv1.PolicyRule
- func GetMetricsServerAPIServiceName() string
- func GetMetricsServerServiceName(dda metav1.Object) string
- func NewDefaultClusterAgentDeployment(dda metav1.Object) *appsv1.Deployment
- func NewDefaultClusterAgentPodTemplateSpec(dda metav1.Object) *corev1.PodTemplateSpec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultAffinity ¶
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 ¶
GetApiserverAuthReaderRoleBindingName returns the name for the role binding to access the extension-apiserver-authentication cm
func GetClusterAgentName ¶
GetClusterAgentName return the Cluster-Agent name based on the DatadogAgent name
func GetClusterAgentRbacResourcesName ¶
GetClusterAgentRbacResourcesName return the Cluster-Agent RBAC resource name
func GetClusterAgentService ¶
GetClusterAgentService returns the Cluster-Agent service
func GetClusterAgentServiceName ¶
GetClusterAgentServiceName return the Cluster-Agent service name based on the DatadogAgent name
func GetClusterAgentVersion ¶
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 ¶
GetDefaultExternalMetricSecretName returns the external metrics provider secret name
func GetDefaultSCC ¶
func GetDefaultSCC(dda *v2alpha1.DatadogAgent) *securityv1.SecurityContextConstraints
GetDefaultSCC returns the default SCC for the cluster agent component
func GetDefaultServiceAccountName ¶
GetDefaultServiceAccountName return the default Cluster-Agent ServiceAccountName
func GetExternalMetricsReaderClusterRoleName ¶
GetExternalMetricsReaderClusterRoleName returns the name for the external metrics reader cluster role
func GetHPAClusterRoleBindingName ¶
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 ¶
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.