Skip to content

Nginx auto instrumentation failed to get nginx version on dash 0.5.10.2-5 #3651

@IldarMinaev

Description

@IldarMinaev

Component(s)

auto-instrumentation

What happened?

Description

Nginx clone script template uses export command for new set variable with command substitution containing spaces. Some old shells can have errors (I have image with dash 0.5.10.2-5).

Steps to Reproduce

Run auto-instrumentation of pod with robotshop/rs-web:latest image.

Expected Result

Init container able to prepare auto-instrumentation of the pod.

Actual Result

Init container failed with error:

/bin/sh: 1: export: version:: bad variable name

Kubernetes Version

1.31.4

Operator version

0.116.0

Collector version

0.116.1

Environment information

Environment

OS: Rancher on Fedora 41

Log output

kubectl logs -n robot-shop web-5599c65d9f-rnfxn otel-agent-source-container-clone
/bin/sh: 1: export: version:: bad variable name

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions