Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add JAVA_OPTS and JAVA_TOOL_OPTIONS to envoverwriter #1133

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

RonFed
Copy link
Contributor

@RonFed RonFed commented Apr 21, 2024

Resolves #1130

@RonFed RonFed requested a review from a team as a code owner April 21, 2024 08:48
@RonFed
Copy link
Contributor Author

RonFed commented Apr 21, 2024

  • Allow to define overwrite value per Sdk (internal map per env var)

@RonFed RonFed marked this pull request as draft April 21, 2024 12:10
@RonFed RonFed marked this pull request as ready for review May 23, 2024 20:49
common/otelsdk.go Show resolved Hide resolved
@@ -210,6 +211,11 @@ func getWorkloadRolloutJsonPatch(obj client.Object, pts *v1.PodTemplateSpec) ([]

// remove odigos instrumentation device from containers
for iContainer, c := range pts.Spec.Containers {
_, sdk, found := odgiosK8s.GetLanguageAndOtelSdk(c)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The for loop below is already executed in the GetLanguageAndOtelSdk function. Does it make sense to also return the device name from the util function?

common/envOverwrite/overwriter.go Outdated Show resolved Hide resolved
common/envOverwrite/overwriter.go Show resolved Hide resolved
return false
}

if !strings.Contains(value, val) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check all SDKs

Co-authored-by: Amir Blum <amirgiraffe@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JAVA_OPTS is overriden during instrumentation
3 participants