Documentation
¶
Index ¶
- Constants
- Variables
- func IsDetected(ctx context.Context, original *v1.PodTemplateSpec, ...) (bool, error)
- func IsTracesInstrumented(original *v1.PodTemplateSpec, instrumentation *apiV1.InstrumentedApplication) (bool, error)
- func ModifyObject(original *v1.PodTemplateSpec, instrumentation *apiV1.InstrumentedApplication) error
- func RollbackPatch(original *v1.PodTemplateSpec, instrumentation *apiV1.InstrumentedApplication) error
- func UpdateActiveServiceName(original *v1.PodTemplateSpec, instrumentation *apiV1.InstrumentedApplication) error
- type AnnotationPatcher
- type Patcher
Constants ¶
View Source
const ( NodeIPEnvName = "NODE_IP" PodNameEnvVName = "POD_NAME" PodNameEnvValue = "$(POD_NAME)" LogzioLanguageAnnotation = "logz.io/instrumentation-language" LogzioServiceAnnotationName = "logz.io/service-name" )
Variables ¶
View Source
var AnnotationPatcherInst = &AnnotationPatcher{}
View Source
var (
LogzioMonitoringService = os.Getenv("MONITORING_SERVICE_ENDPOINT")
)
View Source
var PodOwnedLabels = []string{
"app",
"app.kubernetes.io/name",
}
Functions ¶
func IsDetected ¶
func IsDetected(ctx context.Context, original *v1.PodTemplateSpec, instrumentedApp *apiV1.InstrumentedApplication) (bool, error)
func IsTracesInstrumented ¶
func IsTracesInstrumented(original *v1.PodTemplateSpec, instrumentation *apiV1.InstrumentedApplication) (bool, error)
func ModifyObject ¶
func ModifyObject(original *v1.PodTemplateSpec, instrumentation *apiV1.InstrumentedApplication) error
func RollbackPatch ¶
func RollbackPatch(original *v1.PodTemplateSpec, instrumentation *apiV1.InstrumentedApplication) error
func UpdateActiveServiceName ¶
func UpdateActiveServiceName(original *v1.PodTemplateSpec, instrumentation *apiV1.InstrumentedApplication) error
Types ¶
type AnnotationPatcher ¶
type AnnotationPatcher struct{}
func (*AnnotationPatcher) Patch ¶
func (d *AnnotationPatcher) Patch(ctx context.Context, detected *v1alpha1.InstrumentedApplication, object client.Object) error
type Patcher ¶
type Patcher interface { Patch(podSpec *v1.PodTemplateSpec, instrumentation *apiV1.InstrumentedApplication) UnPatch(podSpec *v1.PodTemplateSpec) error IsTracesInstrumented(podSpec *v1.PodTemplateSpec) bool UpdateServiceNameEnv(podSpec *v1.PodTemplateSpec, instrumentation *apiV1.InstrumentedApplication) }
Click to show internal directories.
Click to hide internal directories.