You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
some other operator which is modifying environment variables of the pod container
Error Flow:
OT Operator adds environment variables, volume and init container with auto-instrumentation
other operator takes the same pod and adds some other environment variables
OT Operator detects changes in the pod and try to update it (env vars)
other operator again detect changes and change env vars
and so on...
Final error log from k8s:
Failed to annotate pod with branch ENI details: Pod "test-pod-64cf7b8d5b-j8zbv" is invalid: spec: Forbidden: pod updates may not change fields other than `spec.containers[*].image`, `spec.initContainers[*].image`, `spec.activeDeadlineSeconds` or `spec.tolerations` (only additions to existing tolerations)
Expected flow for OT Operator:
OT Operator checks (before pod mutation) if instrumentation is configured for pod
OT Operator adds environment variables, volume and init container with auto-instrumentation
other operator add applies his stuff
OT Operator doesn't make any other changes as pod is already instrumented
The text was updated successfully, but these errors were encountered:
@pavolloffay I will be happy to help with this as already investigated the issue. I'm not sure about solution, how should we check if pod is already mutated by OT Operator:
check if env vars are already configured?
check if init container is already configured?
introduce additional annotation to the pod and check if exists (add annotation to the pod after instrumentation configuration part)
Environment:
Error Flow:
environment variables
,volume
andinit container
with auto-instrumentationFinal error log from k8s:
Expected flow for OT Operator:
environment variables
,volume
andinit container
with auto-instrumentationThe text was updated successfully, but these errors were encountered: