resources

package
v0.0.0-...-6497397 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

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 DeleteOldOdigosSystemObjects

func DeleteOldOdigosSystemObjects(ctx context.Context, client *kube.Client, ns string, config *common.OdigosConfiguration) error

func GetAvailableCommunityProfiles

func GetAvailableCommunityProfiles() []k8sprofiles.Profile

func GetAvailableOnPremProfiles

func GetAvailableOnPremProfiles() []k8sprofiles.Profile

func GetAvailableProfilesForTier

func GetAvailableProfilesForTier(odigosTier common.OdigosTier) []k8sprofiles.Profile

func GetCurrentConfig

func GetCurrentConfig(ctx context.Context, client *kube.Client, ns string) (*common.OdigosConfiguration, error)

func GetDeprecatedConfig

func GetDeprecatedConfig(ctx context.Context, client *kube.Client, ns string) (*v1alpha1.OdigosConfiguration, error)

func GetGatewayConfigBasedOnSize

func GetGatewayConfigBasedOnSize(profile common.ProfileName) *common.CollectorGatewayConfiguration

func GetNodeCollectorConfigBasedOnSize

func GetNodeCollectorConfigBasedOnSize(profile common.ProfileName) *common.CollectorNodeConfiguration

func GetOdigosNamespace

func GetOdigosNamespace(client *kube.Client, ctx context.Context) (string, error)

func GetResourcesForProfileName

func GetResourcesForProfileName(profileName common.ProfileName, tier common.OdigosTier) ([]kube.Object, error)

func IsErrNoOdigosNamespaceFound

func IsErrNoOdigosNamespaceFound(err error) bool

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 NewAutoscalerDeployment(ns string, version string, imagePrefix string, imageName string, disableNameProcessor bool) *appsv1.Deployment

func NewAutoscalerLeaderElectionRoleBinding

func NewAutoscalerLeaderElectionRoleBinding(ns string) *rbacv1.RoleBinding

func NewAutoscalerRole

func NewAutoscalerRole(ns string) *rbacv1.Role

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 NewInstrumentorDeployment

func NewInstrumentorDeployment(ns string, version string, telemetryEnabled bool, imagePrefix string, imageName string) *appsv1.Deployment

func NewInstrumentorIssuer

func NewInstrumentorIssuer(ns string) *certv1.Issuer

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 NewInstrumentorService(ns string) *corev1.Service

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 NewKeyvalProxyRole(ns string) *rbacv1.Role

func NewKeyvalProxyRoleBinding

func NewKeyvalProxyRoleBinding(ns string) *rbacv1.RoleBinding

func NewKeyvalProxyServiceAccount

func NewKeyvalProxyServiceAccount(ns string) *corev1.ServiceAccount

func NewLeaderElectionRole

func NewLeaderElectionRole(ns string) *rbacv1.Role

func NewMutatingWebhookConfiguration

func NewMutatingWebhookConfiguration(ns string, caBundle []byte) *admissionregistrationv1.MutatingWebhookConfiguration

func NewNamespace

func NewNamespace(name string) *v1.Namespace

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 NewOdigosConfiguration(ns string, config *common.OdigosConfiguration) (kube.Object, error)

func NewOdigosDeploymentConfigMap

func NewOdigosDeploymentConfigMap(ns string, odigosVersion string, odigosTier string) *corev1.ConfigMap

func NewOdigosDeploymentResourceManager

func NewOdigosDeploymentResourceManager(client *kube.Client, ns string, config *common.OdigosConfiguration, odigosTier common.OdigosTier, odigosVersion string) resourcemanager.ResourceManager

func NewOwnTelemetryCollectorConfigMap

func NewOwnTelemetryCollectorConfigMap(ns string) *corev1.ConfigMap

func NewOwnTelemetryCollectorDeployment

func NewOwnTelemetryCollectorDeployment(ns string) *appsv1.Deployment

func NewOwnTelemetryCollectorService

func NewOwnTelemetryCollectorService(ns string) *corev1.Service

func NewOwnTelemetryConfigMapDisabled

func NewOwnTelemetryConfigMapDisabled(ns string) *corev1.ConfigMap

used for odigos opensource which does not collect own telemetry

func NewOwnTelemetryConfigMapOtlpGrpc

func NewOwnTelemetryConfigMapOtlpGrpc(ns string, odigosVersion string) *corev1.ConfigMap

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 NewSchedulerRole(ns string) *rbacv1.Role

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 NewUIRole

func NewUIRole(ns string) *rbacv1.Role

func NewUIRoleBinding

func NewUIRoleBinding(ns string) *rbacv1.RoleBinding

func NewUIService

func NewUIService(ns string) *corev1.Service

func NewUIServiceAccount

func NewUIServiceAccount(ns string) *corev1.ServiceAccount

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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