Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d14327c

Browse files
committedMar 12, 2024·
fix python upgrade
1 parent 162b605 commit d14327c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎pkg/instrumentation/upgrade/upgrade.go

+5
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,11 @@ func (u *InstrumentationUpgrade) upgrade(_ context.Context, inst v1alpha1.Instru
132132
upgraded.Spec.DotNet.Image = u.DefaultAutoInstDotNet
133133
upgraded.Annotations[annotation] = u.DefaultAutoInstDotNet
134134
}
135+
case constants.AnnotationDefaultAutoInstrumentationPython:
136+
if inst.Spec.Python.Image == autoInst {
137+
upgraded.Spec.Python.Image = u.DefaultAutoInstPython
138+
upgraded.Annotations[annotation] = u.DefaultAutoInstPython
139+
}
135140
}
136141
} else {
137142
u.Logger.Error(nil, "autoinstrumentation not enabled for this language", "flag", config.id)

0 commit comments

Comments
 (0)
Please sign in to comment.