Documentation ¶
Index ¶
- Constants
- func ApplyResourceManagers(ctx context.Context, client *kube.Client, ...) error
- func CreateResourceManagers(client *kube.Client, odigosNs string, odigosTier common.OdigosTier, ...) []resourcemanager.ResourceManager
- func DeleteOldOdigosSystemObjects(ctx context.Context, client *kube.Client, ns string, ...) error
- func GetAvailableCommunityProfiles() []k8sprofiles.Profile
- func GetAvailableOnPremProfiles() []k8sprofiles.Profile
- func GetAvailableProfilesForTier(odigosTier common.OdigosTier) []k8sprofiles.Profile
- func GetCurrentConfig(ctx context.Context, client *kube.Client, ns string) (*common.OdigosConfiguration, error)
- func GetDeprecatedConfig(ctx context.Context, client *kube.Client, ns string) (*v1alpha1.OdigosConfiguration, error)
- func GetGatewayConfigBasedOnSize(profile common.ProfileName) *common.CollectorGatewayConfiguration
- func GetNodeCollectorConfigBasedOnSize(profile common.ProfileName) *common.CollectorNodeConfiguration
- func GetOdigosNamespace(client *kube.Client, ctx context.Context) (string, error)
- func GetResourcesForProfileName(profileName common.ProfileName, tier common.OdigosTier) ([]kube.Object, error)
- func IsErrNoOdigosNamespaceFound(err error) bool
- func NewAutoScalerResourceManager(client *kube.Client, ns string, config *common.OdigosConfiguration, ...) resourcemanager.ResourceManager
- func NewAutoscalerClusterRole() *rbacv1.ClusterRole
- func NewAutoscalerClusterRoleBinding(ns string) *rbacv1.ClusterRoleBinding
- func NewAutoscalerDeployment(ns string, version string, imagePrefix string, imageName string, ...) *appsv1.Deployment
- func NewAutoscalerLeaderElectionRoleBinding(ns string) *rbacv1.RoleBinding
- func NewAutoscalerRole(ns string) *rbacv1.Role
- func NewAutoscalerRoleBinding(ns string) *rbacv1.RoleBinding
- func NewAutoscalerServiceAccount(ns string) *corev1.ServiceAccount
- func NewDataCollectionClusterRole(psp bool) *rbacv1.ClusterRole
- func NewDataCollectionClusterRoleBinding(ns string) *rbacv1.ClusterRoleBinding
- func NewDataCollectionResourceManager(client *kube.Client, ns string, config *common.OdigosConfiguration) resourcemanager.ResourceManager
- func NewDataCollectionServiceAccount(ns string) *corev1.ServiceAccount
- func NewInstrumentorCertificate(ns string) *certv1.Certificate
- func NewInstrumentorClusterRole() *rbacv1.ClusterRole
- func NewInstrumentorClusterRoleBinding(ns string) *rbacv1.ClusterRoleBinding
- func NewInstrumentorDeployment(ns string, version string, telemetryEnabled bool, imagePrefix string, ...) *appsv1.Deployment
- func NewInstrumentorIssuer(ns string) *certv1.Issuer
- func NewInstrumentorLeaderElectionRoleBinding(ns string) *rbacv1.RoleBinding
- func NewInstrumentorResourceManager(client *kube.Client, ns string, config *common.OdigosConfiguration, ...) resourcemanager.ResourceManager
- func NewInstrumentorService(ns string) *corev1.Service
- func NewInstrumentorServiceAccount(ns string) *corev1.ServiceAccount
- func NewInstrumentorTLSSecret(ns string, cert *crypto.Certificate) *corev1.Secret
- func NewKeyvalProxyClusterRole() *rbacv1.ClusterRole
- func NewKeyvalProxyClusterRoleBinding(ns string) *rbacv1.ClusterRoleBinding
- func NewKeyvalProxyDeployment(version string, ns string, imagePrefix string) *appsv1.Deployment
- func NewKeyvalProxyResourceManager(client *kube.Client, ns string, config *common.OdigosConfiguration) resourcemanager.ResourceManager
- func NewKeyvalProxyRole(ns string) *rbacv1.Role
- func NewKeyvalProxyRoleBinding(ns string) *rbacv1.RoleBinding
- func NewKeyvalProxyServiceAccount(ns string) *corev1.ServiceAccount
- func NewLeaderElectionRole(ns string) *rbacv1.Role
- func NewMutatingWebhookConfiguration(ns string, caBundle []byte) *admissionregistrationv1.MutatingWebhookConfiguration
- func NewNamespace(name string) *v1.Namespace
- func NewOdigletClusterRole(psp bool) *rbacv1.ClusterRole
- func NewOdigletClusterRoleBinding(ns string) *rbacv1.ClusterRoleBinding
- func NewOdigletDaemonSet(ns string, version string, imagePrefix string, imageName string, ...) *appsv1.DaemonSet
- func NewOdigletResourceManager(client *kube.Client, ns string, config *common.OdigosConfiguration, ...) resourcemanager.ResourceManager
- func NewOdigletServiceAccount(ns string) *corev1.ServiceAccount
- func NewOdigosConfigResourceManager(client *kube.Client, ns string, config *common.OdigosConfiguration, ...) resourcemanager.ResourceManager
- func NewOdigosConfiguration(ns string, config *common.OdigosConfiguration) (kube.Object, error)
- func NewOdigosDeploymentConfigMap(ns string, odigosVersion string, odigosTier string) *corev1.ConfigMap
- func NewOdigosDeploymentResourceManager(client *kube.Client, ns string, config *common.OdigosConfiguration, ...) resourcemanager.ResourceManager
- func NewOwnTelemetryCollectorConfigMap(ns string) *corev1.ConfigMap
- func NewOwnTelemetryCollectorDeployment(ns string) *appsv1.Deployment
- func NewOwnTelemetryCollectorService(ns string) *corev1.Service
- func NewOwnTelemetryConfigMapDisabled(ns string) *corev1.ConfigMap
- func NewOwnTelemetryConfigMapOtlpGrpc(ns string, odigosVersion string) *corev1.ConfigMap
- func NewOwnTelemetryResourceManager(client *kube.Client, ns string, config *common.OdigosConfiguration, ...) resourcemanager.ResourceManager
- func NewProfilesResourceManager(client *kube.Client, ns string, config *common.OdigosConfiguration, ...) resourcemanager.ResourceManager
- func NewResourceQuota(ns string) *corev1.ResourceQuota
- func NewSCCRoleBinding(ns string) *rbacv1.RoleBinding
- func NewSCClusterRoleBinding(ns string) *rbacv1.ClusterRoleBinding
- func NewSchedulerClusterRole() *rbacv1.ClusterRole
- func NewSchedulerClusterRoleBinding(ns string) *rbacv1.ClusterRoleBinding
- func NewSchedulerDeployment(ns string, version string, imagePrefix string) *appsv1.Deployment
- func NewSchedulerLeaderElectionRoleBinding(ns string) *rbacv1.RoleBinding
- func NewSchedulerResourceManager(client *kube.Client, ns string, config *common.OdigosConfiguration, ...) resourcemanager.ResourceManager
- func NewSchedulerRole(ns string) *rbacv1.Role
- func NewSchedulerRoleBinding(ns string) *rbacv1.RoleBinding
- func NewSchedulerServiceAccount(ns string) *corev1.ServiceAccount
- func NewUIClusterRole() *rbacv1.ClusterRole
- func NewUIClusterRoleBinding(ns string) *rbacv1.ClusterRoleBinding
- func NewUIDeployment(ns string, version string, imagePrefix string) *appsv1.Deployment
- func NewUIResourceManager(client *kube.Client, ns string, config *common.OdigosConfiguration, ...) resourcemanager.ResourceManager
- func NewUIRole(ns string) *rbacv1.Role
- func NewUIRoleBinding(ns string) *rbacv1.RoleBinding
- func NewUIService(ns string) *corev1.Service
- func NewUIServiceAccount(ns string) *corev1.ServiceAccount
Constants ¶
View Source
const ( AutoScalerDeploymentName = "odigos-autoscaler" AutoScalerServiceAccountName = AutoScalerDeploymentName AutoScalerAppLabelValue = AutoScalerDeploymentName AutoScalerRoleName = AutoScalerDeploymentName AutoScalerRoleBindingName = AutoScalerDeploymentName AutoScalerClusterRoleName = AutoScalerDeploymentName AutoScalerClusterRoleBindingName = AutoScalerDeploymentName AutoScalerServiceName = "auto-scaler" AutoScalerContainerName = "manager" )
View Source
const ( InstrumentorServiceName = "instrumentor" InstrumentorDeploymentName = "odigos-instrumentor" InstrumentorAppLabelValue = "odigos-instrumentor" InstrumentorContainerName = "manager" InstrumentorWebhookSecretName = "instrumentor-webhook-cert" InstrumentorWebhookVolumeName = "webhook-cert" )
View Source
const ( OdigletServiceName = "odiglet" OdigletDaemonSetName = "odiglet" OdigletAppLabelValue = "odiglet" OdigletContainerName = "odiglet" OdigletImageName = "keyval/odigos-odiglet" OdigletEnterpriseImageName = "keyval/odigos-enterprise-odiglet" )
View Source
const ( SchedulerImage = "keyval/odigos-scheduler" SchedulerServiceName = "scheduler" SchedulerDeploymentName = "odigos-scheduler" SchedulerAppLabelValue = SchedulerDeploymentName SchedulerRoleName = SchedulerDeploymentName SchedulerRoleBindingName = SchedulerDeploymentName SchedulerClusterRoleName = SchedulerDeploymentName SchedulerClusterRoleBindingName = SchedulerDeploymentName SchedulerServiceAccountName = SchedulerDeploymentName SchedulerContainerName = "manager" )
View Source
const ( UIImage = "keyval/odigos-ui" UIServiceName = "ui" UIDeploymentName = "odigos-ui" UIAppLabelValue = "odigos-ui" UIContainerName = "ui" UIServiceAccountName = "odigos-ui" )
View Source
const (
KeyvalProxyDeploymentName = "odigos-cloud-proxy"
)
View Source
const (
OwnTelemetryCollectorDeploymentName = "own-telemetry-collector"
)
Variables ¶
This section is empty.
Functions ¶
func ApplyResourceManagers ¶
func ApplyResourceManagers(ctx context.Context, client *kube.Client, resourceManagers []resourcemanager.ResourceManager, prefixForLogging string) error
func CreateResourceManagers ¶
func CreateResourceManagers(client *kube.Client, odigosNs string, odigosTier common.OdigosTier, proTierToken *string, config *common.OdigosConfiguration, odigosVersion string) []resourcemanager.ResourceManager
set apiKey to nil for no-op. set to empty string for "no api key" (non odigos cloud mode). set to a valid api key for odigos cloud mode.
func GetAvailableCommunityProfiles ¶
func GetAvailableCommunityProfiles() []k8sprofiles.Profile
func GetAvailableOnPremProfiles ¶
func GetAvailableOnPremProfiles() []k8sprofiles.Profile
func GetAvailableProfilesForTier ¶
func GetAvailableProfilesForTier(odigosTier common.OdigosTier) []k8sprofiles.Profile
func GetCurrentConfig ¶
func GetDeprecatedConfig ¶
func GetGatewayConfigBasedOnSize ¶
func GetGatewayConfigBasedOnSize(profile common.ProfileName) *common.CollectorGatewayConfiguration
func GetNodeCollectorConfigBasedOnSize ¶
func GetNodeCollectorConfigBasedOnSize(profile common.ProfileName) *common.CollectorNodeConfiguration
func GetOdigosNamespace ¶
func GetResourcesForProfileName ¶
func GetResourcesForProfileName(profileName common.ProfileName, tier common.OdigosTier) ([]kube.Object, error)
func NewAutoScalerResourceManager ¶
func NewAutoScalerResourceManager(client *kube.Client, ns string, config *common.OdigosConfiguration, odigosVersion string) resourcemanager.ResourceManager
func NewAutoscalerClusterRole ¶
func NewAutoscalerClusterRole() *rbacv1.ClusterRole
func NewAutoscalerClusterRoleBinding ¶
func NewAutoscalerClusterRoleBinding(ns string) *rbacv1.ClusterRoleBinding
func NewAutoscalerDeployment ¶
func NewAutoscalerLeaderElectionRoleBinding ¶
func NewAutoscalerLeaderElectionRoleBinding(ns string) *rbacv1.RoleBinding
func NewAutoscalerRole ¶
func NewAutoscalerRoleBinding ¶
func NewAutoscalerRoleBinding(ns string) *rbacv1.RoleBinding
func NewAutoscalerServiceAccount ¶
func NewAutoscalerServiceAccount(ns string) *corev1.ServiceAccount
func NewDataCollectionClusterRole ¶
func NewDataCollectionClusterRole(psp bool) *rbacv1.ClusterRole
func NewDataCollectionClusterRoleBinding ¶
func NewDataCollectionClusterRoleBinding(ns string) *rbacv1.ClusterRoleBinding
func NewDataCollectionResourceManager ¶
func NewDataCollectionResourceManager(client *kube.Client, ns string, config *common.OdigosConfiguration) resourcemanager.ResourceManager
func NewDataCollectionServiceAccount ¶
func NewDataCollectionServiceAccount(ns string) *corev1.ServiceAccount
func NewInstrumentorCertificate ¶
func NewInstrumentorCertificate(ns string) *certv1.Certificate
func NewInstrumentorClusterRole ¶
func NewInstrumentorClusterRole() *rbacv1.ClusterRole
func NewInstrumentorClusterRoleBinding ¶
func NewInstrumentorClusterRoleBinding(ns string) *rbacv1.ClusterRoleBinding
func NewInstrumentorIssuer ¶
func NewInstrumentorLeaderElectionRoleBinding ¶
func NewInstrumentorLeaderElectionRoleBinding(ns string) *rbacv1.RoleBinding
func NewInstrumentorResourceManager ¶
func NewInstrumentorResourceManager(client *kube.Client, ns string, config *common.OdigosConfiguration, odigosVersion string) resourcemanager.ResourceManager
func NewInstrumentorService ¶
func NewInstrumentorServiceAccount ¶
func NewInstrumentorServiceAccount(ns string) *corev1.ServiceAccount
func NewInstrumentorTLSSecret ¶
func NewInstrumentorTLSSecret(ns string, cert *crypto.Certificate) *corev1.Secret
func NewKeyvalProxyClusterRole ¶
func NewKeyvalProxyClusterRole() *rbacv1.ClusterRole
func NewKeyvalProxyClusterRoleBinding ¶
func NewKeyvalProxyClusterRoleBinding(ns string) *rbacv1.ClusterRoleBinding
func NewKeyvalProxyDeployment ¶
func NewKeyvalProxyDeployment(version string, ns string, imagePrefix string) *appsv1.Deployment
func NewKeyvalProxyResourceManager ¶
func NewKeyvalProxyResourceManager(client *kube.Client, ns string, config *common.OdigosConfiguration) resourcemanager.ResourceManager
func NewKeyvalProxyRole ¶
func NewKeyvalProxyRoleBinding ¶
func NewKeyvalProxyRoleBinding(ns string) *rbacv1.RoleBinding
func NewKeyvalProxyServiceAccount ¶
func NewKeyvalProxyServiceAccount(ns string) *corev1.ServiceAccount
func NewLeaderElectionRole ¶
func NewMutatingWebhookConfiguration ¶
func NewMutatingWebhookConfiguration(ns string, caBundle []byte) *admissionregistrationv1.MutatingWebhookConfiguration
func NewNamespace ¶
func NewOdigletClusterRole ¶
func NewOdigletClusterRole(psp bool) *rbacv1.ClusterRole
func NewOdigletClusterRoleBinding ¶
func NewOdigletClusterRoleBinding(ns string) *rbacv1.ClusterRoleBinding
func NewOdigletDaemonSet ¶
func NewOdigletDaemonSet(ns string, version string, imagePrefix string, imageName string, odigosTier common.OdigosTier, openshiftEnabled bool, goAutoIncludeCodeAttributes bool, clusterDetails *autodetect.ClusterDetails) *appsv1.DaemonSet
func NewOdigletResourceManager ¶
func NewOdigletResourceManager(client *kube.Client, ns string, config *common.OdigosConfiguration, odigosTier common.OdigosTier, odigosVersion string) resourcemanager.ResourceManager
func NewOdigletServiceAccount ¶
func NewOdigletServiceAccount(ns string) *corev1.ServiceAccount
func NewOdigosConfigResourceManager ¶
func NewOdigosConfigResourceManager(client *kube.Client, ns string, config *common.OdigosConfiguration, odigosTier common.OdigosTier) resourcemanager.ResourceManager
func NewOdigosConfiguration ¶
func NewOdigosDeploymentResourceManager ¶
func NewOdigosDeploymentResourceManager(client *kube.Client, ns string, config *common.OdigosConfiguration, odigosTier common.OdigosTier, odigosVersion string) resourcemanager.ResourceManager
func NewOwnTelemetryCollectorDeployment ¶
func NewOwnTelemetryCollectorDeployment(ns string) *appsv1.Deployment
func NewOwnTelemetryConfigMapDisabled ¶
used for odigos opensource which does not collect own telemetry
func NewOwnTelemetryConfigMapOtlpGrpc ¶
for odigos cloud which process own telemetry
func NewOwnTelemetryResourceManager ¶
func NewOwnTelemetryResourceManager(client *kube.Client, ns string, config *common.OdigosConfiguration, odigosTier common.OdigosTier, odigosVersion string) resourcemanager.ResourceManager
func NewProfilesResourceManager ¶
func NewProfilesResourceManager(client *kube.Client, ns string, config *common.OdigosConfiguration, tier common.OdigosTier) resourcemanager.ResourceManager
func NewResourceQuota ¶
func NewResourceQuota(ns string) *corev1.ResourceQuota
func NewSCCRoleBinding ¶
func NewSCCRoleBinding(ns string) *rbacv1.RoleBinding
func NewSCClusterRoleBinding ¶
func NewSCClusterRoleBinding(ns string) *rbacv1.ClusterRoleBinding
func NewSchedulerClusterRole ¶
func NewSchedulerClusterRole() *rbacv1.ClusterRole
func NewSchedulerClusterRoleBinding ¶
func NewSchedulerClusterRoleBinding(ns string) *rbacv1.ClusterRoleBinding
func NewSchedulerDeployment ¶
func NewSchedulerDeployment(ns string, version string, imagePrefix string) *appsv1.Deployment
func NewSchedulerLeaderElectionRoleBinding ¶
func NewSchedulerLeaderElectionRoleBinding(ns string) *rbacv1.RoleBinding
func NewSchedulerResourceManager ¶
func NewSchedulerResourceManager(client *kube.Client, ns string, config *common.OdigosConfiguration, odigosVersion string) resourcemanager.ResourceManager
func NewSchedulerRole ¶
func NewSchedulerRoleBinding ¶
func NewSchedulerRoleBinding(ns string) *rbacv1.RoleBinding
func NewSchedulerServiceAccount ¶
func NewSchedulerServiceAccount(ns string) *corev1.ServiceAccount
func NewUIClusterRole ¶
func NewUIClusterRole() *rbacv1.ClusterRole
func NewUIClusterRoleBinding ¶
func NewUIClusterRoleBinding(ns string) *rbacv1.ClusterRoleBinding
func NewUIDeployment ¶
func NewUIDeployment(ns string, version string, imagePrefix string) *appsv1.Deployment
func NewUIResourceManager ¶
func NewUIResourceManager(client *kube.Client, ns string, config *common.OdigosConfiguration, odigosVersion string) resourcemanager.ResourceManager
func NewUIRoleBinding ¶
func NewUIRoleBinding(ns string) *rbacv1.RoleBinding
func NewUIService ¶
func NewUIServiceAccount ¶
func NewUIServiceAccount(ns string) *corev1.ServiceAccount
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.